This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Character set of a locale
- From: Martin Sebor <msebor at gmail dot com>
- To: Florian Weimer <fweimer at redhat dot com>, libc-help <libc-help at sourceware dot org>
- Date: Thu, 10 Sep 2015 21:21:39 -0600
- Subject: Re: Character set of a locale
- Authentication-results: sourceware.org; auth=none
- References: <55F01A7F dot 9070208 at redhat dot com>
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.
Martin