diff options
author | Werner Koch <[email protected]> | 1999-09-15 14:26:39 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-09-15 14:26:39 +0000 |
commit | dcaaa9223e2d1e0af80ddc2d3d70232cbac60d55 (patch) | |
tree | ea3c225eda906d79540f9ec5e4b43d18323e2993 /util/ttyio.c | |
parent | See ChangeLog: Mon Sep 13 10:55:14 CEST 1999 Werner Koch (diff) | |
download | gnupg-dcaaa9223e2d1e0af80ddc2d3d70232cbac60d55.tar.gz gnupg-dcaaa9223e2d1e0af80ddc2d3d70232cbac60d55.zip |
See ChangeLog: Wed Sep 15 16:22:17 CEST 1999 Werner KochV1-0-4V1-0-3V1-0-2V1-0-1-ePit-1
Diffstat (limited to '')
-rw-r--r-- | util/ttyio.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/util/ttyio.c b/util/ttyio.c index 74f6ce0f6..6c1a5059a 100644 --- a/util/ttyio.c +++ b/util/ttyio.c @@ -107,6 +107,23 @@ init_ttyfp(void) SetConsoleMode(con.in, DEF_INPMODE ); SetConsoleMode(con.out, DEF_OUTMODE ); +#warning DEBUG CODE + { + unsigned int cp1, cp2; + + cp1 = GetConsoleCP(); + cp2 = GetConsoleOutputCP(); + + log_info("InputCP=%u OutputCP=%u\n", cp1, cp2 ); + + if( !SetConsoleOutputCP( 1252 ) ) + log_info("SetConsoleOutputCP failed: %d\n", (int)GetLastError() ); + + cp1 = GetConsoleCP(); + cp2 = GetConsoleOutputCP(); + log_info("InputCP=%u OutputCP=%u after switch1\n", cp1, cp2 ); + + } #elif defined(__EMX__) ttyfp = stdout; /* Fixme: replace by the real functions: see wklib */ #else |