This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Character set of a locale
- From: Florian Weimer <fweimer at redhat dot com>
- To: Martin Sebor <msebor at gmail dot com>, libc-help <libc-help at sourceware dot org>
- Date: Mon, 14 Sep 2015 11:42:17 +0200
- Subject: Re: Character set of a locale
- Authentication-results: sourceware.org; auth=none
- References: <55F01A7F dot 9070208 at redhat dot com> <55F248C3 dot 6080309 at gmail dot com>
On 09/11/2015 05:21 AM, Martin Sebor wrote:
> On 09/09/2015 05:39 AM, Florian Weimer wrote:
>> Is there a way to print the character set of the current locale using a
>> command line tool? âlocaleâ does not print this information,
>> unfortunately.
>>
>> I know I can get it programatically with nl_langinfo(CODESET). It would
>> just be nice to have this as a simple command-line tool (maybe one which
>> also could examine locale files directly).
>
> I believe the command 'locale -c charmap' produces the output you're
> looking for.
Excellent, I suggested to add it to the locale(1) manual page here:
<https://bugzilla.kernel.org/show_bug.cgi?id=104511>
--
Florian Weimer / Red Hat Product Security