This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/5015] locale(1) quotes arbitrarily
- From: "jakub at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 21 Sep 2007 19:33:06 -0000
- Subject: [Bug libc/5015] locale(1) quotes arbitrarily
- References: <20070910151854.5015.jidanni@jidanni.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jakub at redhat dot com 2007-09-21 19:33 -------
The quoting isn't arbitrary, but mandated by the standard.
See
http://www.opengroup.org/onlinepubs/009695399/utilities/locale.html
In particular, LANG= (first) and LC_ALL= (last) lines aren't supposed to have
double quotes around the value, while for the rest if a particular var
is specified in the environment and not overridden by LC_ALL, then it is
not surrounded by double quotes, otherwise, when it is either overridden
by LC_ALL, or implied from LANG, is surrounded by double quotes.
So if you run
LANG=zh_TW.utf8 LC_CTYPE=zh_TW.utf8 locale
and both LC_ALL and LC_NUMERIC env vars are unset, then
LC_CTYPE=zh_TW.utf8
line doesn't have the quotes, while
LC_NUMERIC="zh_TW.utf8"
hash them.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=5015
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.