aboutsummaryrefslogtreecommitdiffstats
path: root/common/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/audit.c')
-rw-r--r--common/audit.c4
1 files changed, 4 insertions, 0 deletions
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);
}