WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: SOLVED - Can't get locale work  (Read 4442 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
SOLVED - Can't get locale work
« 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.


« Last Edit: September 02, 2009, 01:06:46 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
SOLVED - Re: Can't get locale work
« Reply #1 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.

« Last Edit: September 02, 2009, 03:41:32 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bhaskar

  • Newbie
  • *
  • Posts: 2
Re: SOLVED - Can't get locale work
« Reply #2 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

Offline bhaskar

  • Newbie
  • *
  • Posts: 2
Re: SOLVED - Can't get locale work
« Reply #3 on: September 28, 2009, 11:13:03 AM »
It's glibc_apps.

-- Bhaskar