Talk:HOWTO localedef

From Gentoo Linux Wiki

Jump to: navigation, search

There are always a few issues. Currently there are a few unknowns and problems with all this.

  • Exactly how localedef works on Gentoo and with Gnome is not clear. Where for example has it put the output file?

man localedef

OUTPUT FILES
The format of the created output is unspecified.
If the name  operand  does not contain  a slash,
the existence of an output file for the locale is unspecified.

so if you create it like this:

mkdir mylocales
localedef -c -i pl_PL -f UTF-8 mylocales/pl_PL.UTF-8b

you can browse it

ls mylocales/pl_PL.UTF-82

But finding modified files in last 10 minutes or less shows some interesting file:

find / -xdev -mmin -10 -type f
/usr/lib/locale/locale-archive

After some investigation i am sure that localedef modifies:

/usr/lib/locale/locale-archive

Without appending slash, localedef gets source definitions from /usr/lib/locale (or from /usr/share/locale/ or /usr/share/i18n/locales/) and put it in file /usr/lib/locale/locale-archive. When we append slash, it creates source definition.

--Rofro 14:02, 1 February 2006 (GMT)

this is very helpful Rofro, I'll update the page to take account of this Thruston 18:37, 8 February 2006 (GMT)

Have things changed? I'm using en_US.UTF-8 as my locale. I get this

abday="Sun;Mon;Tue;Wed;Thu;Fri;Sat"
day="Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday"
first_weekday=1
first_workday=1

But the calendar now starts on Monday, despite first_weekday=1. This is better than Saturday, but I want Sunday.
Bobpaul 05:14, 14 February 2006 (GMT)

> I'm having exactly the same issue. What's up? As an aside, is it possible to just have an environement variable for LC_TIME that would supersede LC_ALL? --Trjonescp 00:30, 29 July 2006 (UTC)

[edit] Has anyone filed a glibc bug?

I haven't. --GrimRC 86.4.58.252 18:14, 7 May 2007 (UTC)

Personal tools