Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: bmarkus on September 01, 2009, 07:20:36 AM
-
I can't get locale effective. Changing locale for example to hu_HU (same with others) applications still using the default C. Output of locale command:
root@box:~# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=hu_HU
LC_CTYPE="hu_HU"
LC_NUMERIC="hu_HU"
LC_TIME="hu_HU"
LC_COLLATE="hu_HU"
LC_MONETARY="hu_HU"
LC_MESSAGES="hu_HU"
LC_PAPER="hu_HU"
LC_NAME="hu_HU"
LC_ADDRESS="hu_HU"
LC_TELEPHONE="hu_HU"
LC_MEASUREMENT="hu_HU"
LC_IDENTIFICATION="hu_HU"
LC_ALL=
root@box:~#
Extensions like glib2-locales.tce and glibc_i18n_locale.tce are installed as well as locale for the application (mc) but no effect. I'm lost >:( There is still something missing. Unfortunately I'm not familiar with locale setup.
-
It works now, solution found in this thread:
http://forum.tinycorelinux.net/index.php?topic=1800.0
What I missed:
mkdir -p /usr/lib/locale
localedef -i hu_HU -f ISO-8859-2 hu_HU
BTW, this is definitely a topic which deserves a WIKI article. I will allocate some time to create it.
-
Which TCZ provides localedef? I am trying to install a Unicode enabled application. I have ICU installed, but the application needs at least one UTF-8 locale, e.g., en_US.utf8, but I can't find the application that provides localedef to generate the locale (or which provides a pre-generated UTF-8 locale). Thank you very much.
-- Bhaskar
-
It's glibc_apps.
-- Bhaskar