All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] User question UTF-8
@ 2015-09-15 17:11 Steve Calfee
  2015-09-15 21:21 ` Thomas Petazzoni
  2015-09-15 21:21 ` Arnout Vandecappelle
  0 siblings, 2 replies; 5+ messages in thread
From: Steve Calfee @ 2015-09-15 17:11 UTC (permalink / raw)
  To: buildroot

Hi,

I am trying to port a python application to buildroot/busybox. It
needs to read disk files from removable drives. The filenames may
contain utf-8 chars.

Currently ls from busybox prints ? for the utf-8 non-ascii chars. Both
from console on minicom and from ssh (which should handle utf-8).

There seems to be lots of config knobs.

I assume utf-8 chars are somehow related to locales? I enabled locales
in the internal glib toolchain.

BR2_arm=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_ENABLE_LOCALE_PURGE=y
BR2_GENERATE_LOCALE="en_US.UTF-8"
BR2_TARGET_OPTIMIZATION="-Os -pipe"
# BR2_TARGET_GENERIC_GETTY is not set
# BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW is not set
BR2_PACKAGE_LIBPTHREAD_STUBS=y
# BR2_TARGET_ROOTFS_TAR is not set
BR2_TARGET_SHEEVAPLUG=y


Busybox also has locale settings:
grep LOCAL output/build/busybox-1.23.2/.config
CONFIG_LOCALE_SUPPORT=y
# CONFIG_UNICODE_USING_LOCALE is not set
# CONFIG_FEATURE_UNIX_LOCAL is not set
# CONFIG_HUSH_LOCAL is not set

From googling, Linux always supports anything for filenames, since it
just uses bytes not unicode for filenames.

But I seem to be missing something. My generated system does not seem
to properly handle utf-8. I am guessing until that works the python os
module is also not going to handle utf-8. And indeed it does not work
now.

Regards, Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-09-15 21:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-15 17:11 [Buildroot] User question UTF-8 Steve Calfee
2015-09-15 21:21 ` Thomas Petazzoni
2015-09-15 21:39   ` Steve Calfee
2015-09-15 21:21 ` Arnout Vandecappelle
2015-09-15 21:49   ` Steve Calfee

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.