linux-l: libc-5.4.36 und locale

Carsten Paeth calle at calle.in-berlin.de
Fr Aug 8 11:58:11 CEST 1997


Hi.

Habe mein system auf libc-5.4.36 umgestellt, dabei hatte ich wieder das
locale problem. Hier meine Lösung:

Mit der neuen libc haben die Files in /usr/share/locale ein neues Format.
Im release-libc-5.4.36 stand:

- Due to the new, improved locale, the Linux C library 5.4.36 is binary
- compatible with libc 5.3.12 but not vice versa. The binaries
- compiled/linked with libc.so.5.4.36 may not run with libc.so.5.3.12.
- You may need to regenerate locale files for the new locale in libc
- 5.4.36 if you use locales other tha C/POSIX which are the defaults.
- 
- The locale sources are at
- 
- ftp://dkuug.dk/i18n/WG15-collection/locales

Nun ganz so einfach war es nicht.

Ich habe ganz ftp://dkuug.dk/i18n/WG15-collection abgeholt.

Benötigt habe ich:

charmaps/ISO_8859-1:1987 installiert als /usr/share/i18n/charmap/ISO_8859-1:1987
locales/de_DE            installiert als /usr/share/i18n/locales/de_DE
locales/en_DK            installiert als /usr/share/i18n/locales/en_DK

Mit dem Aufruf 
localedef  -f ISO_8859-1:1987 -i de_DE de_DE

habe ich dann
/usr/share/locale/de_DE:
total 28
drwxrwxr-x   2 calle    staff        1024 Aug  8 11:14 .
drwxr-xr-x   8 calle    staff        1024 Aug  8 11:30 ..
-rw-rw-r--   1 calle    staff       10940 Aug  8 11:44 LC_COLLATE
-rw-rw-r--   1 calle    staff       10399 Aug  8 11:44 LC_CTYPE
-rw-rw-r--   1 calle    staff          42 Aug  8 11:44 LC_MESSAGES
-rw-rw-r--   1 calle    staff          94 Aug  8 11:44 LC_MONETARY
-rw-rw-r--   1 calle    staff          26 Aug  8 11:44 LC_NUMERIC
-rw-rw-r--   1 calle    staff         465 Aug  8 11:44 LC_TIME

erzeugt.

Danach habe ich dann noch ein
/usr/share/locale/locale.alias erzeugt:
ISO-8859-1 de_DE

Jetzt geht es wieder mit
export LC_CTYPE=ISO-8859-1

Ich habe auch die neuen sh-utils-1.16 installiert.
Nach LC_ALL=de_DE gibt date --help auch deutsche Meldungen aus
und ctype geht auch wie es soll.

Ich habe 'mal die neuen Files aus /usr/share/locale und /usr/share/i18n
in tarfiles gepackt:

ftp://calle.in-berlin.de/pub/linux/packages/GCC/de_DE.locale-5.4.36.tar.gz
(4198 bytes)

ftp://calle.in-berlin.de/pub/linux/packages/GCC/i18n-calle.tar.gz
(705338 bytes)


Viel Spaß.

calle
---
calle at calle.in-berlin.de




Mehr Informationen über die Mailingliste linux-l