https://bugzilla.kernel.org/show_bug.cgi?id=104511 --- Comment #2 from Florian Weimer <fweimer@xxxxxxxxxx> --- (In reply to Marko Myllynen from comment #1) > Hi Florian, > > The first example is: > > $ locale > LANG=en_US.UTF-8 > LC_CTYPE="en_US.UTF-8" > ... > > And there the encoding listed matches the charset in use, do you think an > additional example would still be warranted? Yes, absolutely, because “locale -c charmap” works even if the charset is not part of the locale name: $ LC_ALL=zh_CN locale -c charmap LC_CTYPE GB2312 $ LC_ALL=lzh_TW locale -c charmap LC_CTYPE UTF-8 $ LC_ALL=zh_HK locale -c charmap LC_CTYPE BIG5-HKSCS I don't know of any other convenient way to obtain this information (short of writing a small C program which uses nl_langinfo(CODESET)). -- You are receiving this mail because: You are watching the assignee of the bug.-- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html