On 12/18/04 at 20:06:24 Werner Koch wrote: >> For GPG it might be a workaround to additionally use GetOEMCP(), if >> GetConsoleOutputCP() returns 0. A simple patch for this is attached.
> Add the charset option to the gpg.conf. This doesn't work, since gpg's main() calls set_native_charset(NULL) before parsing any options. It ignores the return value, but the internal variable errorcount is increased anyway, causing main() to exit before any real work is done... Here's another patch to reset the errorcount after the first set_native_charset call, so it ignores any failures. This doesn't suppress the needless warning message about codepage CP0 not being available, however. It's probably best to apply both patches...
diff -urd gnupg-1.4.0-stock/g10/g10.c gnupg-1.4.0/g10/g10.c
--- gnupg-1.4.0-stock/g10/g10.c Thu Dec 16 10:47:36 2004
+++ gnupg-1.4.0/g10/g10.c Mon Dec 20 05:43:59 2004
@@ -1759,6 +1759,7 @@
#endif
set_native_charset (NULL); /* Try to auto set the character set */
+ log_get_errorcount(1); /* Ignore and forget any failures */
/* Try for a version specific config file first */
if( default_config )
pgpQGOFLO6u9c.pgp
Description: PGP signature
________________________________________________________ Current beta is 3.0.2.10 | 'Using TBBETA' information: http://www.silverstones.com/thebat/TBUDLInfo.html IMPORTANT: To register as a Beta tester, use this link first - http://www.ritlabs.com/en/partners/testers/

