aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/ChangeLog5
-rw-r--r--common/audit.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/common/ChangeLog b/common/ChangeLog
index c01ab4307..f8b2858e5 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-31 Werner Koch <[email protected]>
+
+ * audit.c (audit_print_result): Make sure that the output is
+ always UTF8.
+
2008-01-27 Werner Koch <[email protected]>
* exechelp.c (gnupg_spawn_process): Add arg FLAGS and changed all
diff --git a/common/audit.c b/common/audit.c
index 59f881cd5..706012ebe 100644
--- a/common/audit.c
+++ b/common/audit.c
@@ -938,10 +938,13 @@ audit_print_result (audit_ctx_t ctx, estream_t out, int use_html)
helptag_t helptag;
const char *s;
int show_raw = 0;
+ char *orig_codeset;
if (!ctx)
return;
+ orig_codeset = i18n_switchto_utf8 ();
+
/* We use an environment variable to include some debug info in the
log. */
if ((s = getenv ("gnupg_debug_audit")))
@@ -1090,5 +1093,6 @@ audit_print_result (audit_ctx_t ctx, estream_t out, int use_html)
ctx->outstream = NULL;
ctx->use_html = 0;
clear_helptags (ctx);
+ i18n_switchback (orig_codeset);
}