Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: bmarkus on September 01, 2009, 04:20:36 AM

Title: SOLVED - Can't get locale work
Post by: bmarkus on September 01, 2009, 04: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:

Quote
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.


Title: SOLVED - Re: Can't get locale work
Post by: bmarkus on September 02, 2009, 01:06:22 AM
It works now, solution found in this thread:

http://forum.tinycorelinux.net/index.php?topic=1800.0

What I missed:

Quote
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.

Title: Re: SOLVED - Can't get locale work
Post by: bhaskar on September 28, 2009, 07:27:18 AM
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
Title: Re: SOLVED - Can't get locale work
Post by: bhaskar on September 28, 2009, 11:13:03 AM
It's glibc_apps.

-- Bhaskar