On 11/20/20 2:35 PM, Keith Thompson wrote:
> James Kuyper <
james...@alumni.caltech.edu> writes:
>> On 11/20/20 11:08 AM, Scott Lurndal wrote:
>>> Bonita Montero <
Bonita....@gmail.com> writes:
>>>> I'm curious about the supported locales of my C- and C++-runtime.
>>>> So is there a way to list the supported locales for either the C-
>>>> or C++-runtime ?
>>>
>>> On linux:
>>>
>>> $ ls /usr/share/i18n/locales/
>>> $ ls /usr/share/i18n/locales/ |wc -l
>>> 312
>>
>> Or just type "locale -a"
>
> On my system, "locale -a" shows 29 locales, but there are 361 entries in
> /usr/share/i18n/locales/. I think some of the files in that directory
> don't correspond to locales, but not enough of them to explain the
> difference.
>
I see the same 361 entries, but locale -a gives 61 locales for me.
Except for the C, C.UTF-8, and POSIX locales, every locale given by
"locale -a" corresponds to one of the 5 languages that I can read, and
for which I've installed fonts. There are, for instance, 22 different
locales for Spanish, which is how the total comes to 61.