Bug#441587: locale(1) arbitrary quotes
Package: libc6
Version: 2.6.1-2
Severity: minor
File: /usr/bin/locale
The locale command puts quotes around some of the values
but not others.
$ locale|perl -pwle '$a=/"/?"Q":"N";$a="Z" if /=$/;s/^/$a /'
N LANG=zh_TW.utf8
N LC_CTYPE=zh_TW.utf8
Q LC_NUMERIC="zh_TW.utf8"
Q LC_TIME="zh_TW.utf8"
N LC_COLLATE=C
Q LC_MONETARY="zh_TW.utf8"
N LC_MESSAGES=C
Q LC_PAPER="zh_TW.utf8"
Q LC_NAME="zh_TW.utf8"
Q LC_ADDRESS="zh_TW.utf8"
Q LC_TELEPHONE="zh_TW.utf8"
Q LC_MEASUREMENT="zh_TW.utf8"
Q LC_IDENTIFICATION="zh_TW.utf8"
Z LC_ALL=
Most disturbing are pairs like
N LC_CTYPE=zh_TW.utf8
Q LC_NUMERIC="zh_TW.utf8"
If there is no logic for the difference, then the code is merely
carelessly using an accidental double standard.
In 334281:
>> The locale(1) man page should say why it puts quotes around some of
>> the values.
A> There is no reason for that, so we can't put that in the man page.
Reply to: