X-Git-Url: https://pere.pagekite.me/gitweb/homepage.git/blobdiff_plain/5b9f47aeb94c95bbe534d509814e65cd2c999435..ae5db6d19f3d85fdd5e7bd4c12be28fa3f15fc43:/linux/glibc/howto.html diff --git a/linux/glibc/howto.html b/linux/glibc/howto.html index eb44d0821c..7b68909fb8 100644 --- a/linux/glibc/howto.html +++ b/linux/glibc/howto.html @@ -86,20 +86,29 @@

Reuse when possible

- - "copy" from existing locales if the content should be identical +

One should avoid cut-n-paste when possible, and instead use + the copy statement to include sections from locales + with identical content.

LD_IDENTIFICATION

- - standard refs in the LD_IDENTIFICATION +

The category entries are references to the standard used when + writing the given section. The standard refs should have + quotes around them, and should not use the <U#> + notation. They should normally look something like this:

- - quotes around the text - - - no <U#>, use normal ASCII +
+category  "i18n:1997";LC_IDENTIFICATION
+	

LC_MESSAGES

- - yes/no expr should have the form ^[yYnN], without 0 and 1 - and without trailing ".*". +

Then yesexpr and noexpr entries should have the form + ^[yY<extra>] and ^[nN<extra>], + without 0 and 1 and without trailing ".*". The + reason is to make sure the expressions have the same form as + the expressions used in the C/POSIX locale (^[yY] and + ^[nN]).

Standard documents and specifications

@@ -131,6 +140,9 @@ localedef -i de_DE@euro -c -f ISO-8859-15 de_DE LANG=de_DE date + +

I've made a small tool check-locale + capable of detecting a few common mistakes with locales

@@ -138,7 +150,7 @@
Petter Reinholdtsen
-Last modified: Mon Aug 9 08:30:26 CEST 2004 +Last modified: Mon Dec 20 20:17:59 CET 2004