current charset guessing
wk at gnupg.org
Tue Jan 18 16:47:17 CET 2005
On Sat, 15 Jan 2005 01:17:10 +0100 (CET), Alain Bench said:
> I assume you meant libcharset. Yes: Reimplement, or reuse it, use it
> if available, or even provide it. After all it's already squatting in
> the tarball: gnupg-1.4.0/intl/localcharset.c :-)
Onmost systems it is not used and it will raise problems when
installing with --disable-nls.
> I wonder how The Bat! can make GetConsoleOutputCP() return 0 when
> needed. FreeConsole() to detach, or something like that?
I don't know. Frontends are better adviced using --charset
> I wonder how to decide which function applies, OCP or ACP. I mean:
> Typically one gives 850 the other 1252. When you run in text mode,
Not in most countries.
> Normally should be "Müller" (u umlaut). BTW I wonder why
> stdout/stderr are reordered.
Due to buffering issues.
> cost of breaking legitimate usage, even rare. May I make two proposals:
> -1) Get rid of the warning message on simple display of unconvertable
> chars. Unconfigured locale people would see (faked here):
> -2) Make and document a special "novars" case: Where locale variables
> are applicable (not Win32), if all 3 of LC_ALL, LC_CTYPE, and LANG are
> unset, and so far guessed charset is US-Ascii, then charset = Latin-1.
GNU also defines LANGUAGE; this gets to complicated.
> | $ gpg -vvv --list-keys "René"
> | gpg: using character set `ISO-8859-1' novars fallback: see http://explanations
What I did now is to display a warning only once and print a pointer
to a web page.
More information about the Gnupg-users