diff options
author | Timo Schulz <[email protected]> | 2004-11-03 20:03:46 +0000 |
---|---|---|
committer | Timo Schulz <[email protected]> | 2004-11-03 20:03:46 +0000 |
commit | 37ecd725e58c41820e01f15c1ef4fb2c07014aa9 (patch) | |
tree | d5b9174d9498fdb12e27b85d28bc31456fc56354 /util/simple-gettext.c | |
parent | * strgutil.c (load_libiconv): Use log_info to avoid failures when (diff) | |
download | gnupg-37ecd725e58c41820e01f15c1ef4fb2c07014aa9.tar.gz gnupg-37ecd725e58c41820e01f15c1ef4fb2c07014aa9.zip |
2004-11-03 Timo Schulz <[email protected]>
* strgutil.c (w32_strerror): New.
* ttyio.c (init_ttyfp, tty_printf, do_get): Use it here.
* iobuf.c (fd_cache_open, file_filter): Likewise.
(iobuf_seek, translate_file_handle): Likewise.
Diffstat (limited to 'util/simple-gettext.c')
-rw-r--r-- | util/simple-gettext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/simple-gettext.c b/util/simple-gettext.c index 8ec6aba16..ed658fa59 100644 --- a/util/simple-gettext.c +++ b/util/simple-gettext.c @@ -427,7 +427,7 @@ gettext( const char *msgid ) log_info("InputCP=%u OutputCP=%u\n", cp1, cp2 ); if( !SetConsoleOutputCP( 1252 ) ) - log_info("SetConsoleOutputCP failed: %d\n", (int)GetLastError() ); + log_info("SetConsoleOutputCP failed: %s\n", w32_strerror (0)); cp1 = GetConsoleCP(); cp2 = GetConsoleOutputCP(); |