This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15498] New: typo in gcc manual: non-existing locale example en_UK, should be en_GB
- From: "Markus dot Kuhn at cl dot cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 18:53:03 -0000
- Subject: [Bug c/15498] New: typo in gcc manual: non-existing locale example en_UK, should be en_GB
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
In the gcc-3.4.0 manual on
http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/Environment-Variables.html#Environment%20Variables
under LANG, the sentence
A typical value is en_UK for English in the United Kingdom.
should be changed to
A typical value is en_GB for English in the United Kingdom.
or even better
A typical value is en_GB.UTF-8 for English in the United Kingdom
encoded in UTF-8.
Note that POSIX standard locale names are based on the ISO 3166-1 alpha-2 codes,
and the code for the United Kingdom is GB, not UK. That is also what glibc uses.
There is no en_UK locale in glibc or any other known C library.
Reference:
http://www.iso.ch/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html
--
Summary: typo in gcc manual: non-existing locale example en_UK,
should be en_GB
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Markus dot Kuhn at cl dot cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15498