Tag Info

New answers tagged

1

I recommend checking locale charmap's output (which reports the values set by $LANG, $LC_CTYPE, $LC_ALL). This one does not directly query the terminal, but it's essential for most of the applications that the locale is set up correctly, consistently with the terminal. If it reports anything else than the actual behavior, not only your app but pretty much ...


0

Here is a half-solution, addressing the problem of determining the encoding when /apps/gnome-terminal/profiles/Default/encoding is equal to the string current. Assuming that the string current means that gnome-terminal should use the current locale. It is tempting to check the LANG variable to determine the encoding, but according to this question, that ...



Top 50 recent answers are included