1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
4 <title>How to write a GNU libc locale
</title>
8 <h1>How to write a GNU libc locale
</h1>
10 <address>by Petter Reinholdtsen
</address>
12 <p>This is a draft document explaining how to write locale files
13 for GNU libc. It will not go into details, but reference
14 specifications. It will on the other hand mention some of the
15 pitfalls, and try to document the current practice.
</p>
17 <h2>How to choose the locale file name
</h2>
19 - how to choose the file name
21 <h2>Category order
</h2>
23 <p>To make it easier to compare locales with each other, I
24 recommend using the same order for the categories in all
25 locales. Any order will do, so I picked the order used in most
26 locales, and decided to recommend this order:
</p>
43 <h2>Reuse when possible
</h2>
45 - "copy" from existing locales if the content should be identical
47 <h2>LD_INDENTIFICATION
</h2>
49 - standard refs in the LD_INDENTIFICATION
53 - yes/no expr should have the form ^[yYnN
<extra>], without
0 and
1
55 <h2>Standard documents and specifications
</h2>
58 <address><a href=
"mailto:pere@hungry.com">Petter Reinholdtsen
</a></address>
59 <!-- Created: Sun Mar 21 18:14:42 CET 2004 -->
61 Last modified: Sat May
15 11:
56:
09 CEST
2004