Locale oddity
Morten Bo Johansen
listmail at mbjnet.dk
Sun Jul 19 17:21:38 UTC 2020
Hi
(This is FreeBSD 12.1-RELEASE-p7 amd64)
If I unset the $LANG variable, then all other LC_* category
locale variables will automatically be set to "C" except for
the $LC_ALL variable:
~/ % LANG= locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
Otherwise they are:
~/ % locale
LANG=da_DK.UTF-8
LC_CTYPE="da_DK.UTF-8"
LC_COLLATE="da_DK.UTF-8"
LC_TIME="da_DK.UTF-8"
LC_NUMERIC="da_DK.UTF-8"
LC_MONETARY="da_DK.UTF-8"
LC_MESSAGES="da_DK.UTF-8"
LC_ALL=
I don't understand this behaviour. Could someone explain the
logic of this to me?
To me it seems like a bug.
Thanks,
Morten
More information about the freebsd-questions
mailing list