This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Character set of a locale


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]