[Bug libc/5015] locale(1) quotes arbitrarily

jakub at redhat dot com sourceware-bugzilla@sourceware.org
Fri Sep 21 19:33:00 GMT 2007


------- 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.



More information about the Glibc-bugs mailing list