diff options
Diffstat (limited to 'sm/certdump.c')
-rw-r--r-- | sm/certdump.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sm/certdump.c b/sm/certdump.c index 21581dca3..33052b186 100644 --- a/sm/certdump.c +++ b/sm/certdump.c @@ -640,7 +640,10 @@ gpgsm_format_keydesc (ksba_cert_t cert) orig_codeset = nl_langinfo (CODESET); #endif if (orig_codeset) - { /* We only switch when we are able to restore the codeset later. */ + { /* We only switch when we are able to restore the codeset later. + Note that bind_textdomain_codeset does only return on memory + errors but not if a codeset is not available. Thus we don't + bother printing a diagnostic here. */ orig_codeset = xstrdup (orig_codeset); if (!bind_textdomain_codeset (PACKAGE_GT, "utf-8")) orig_codeset = NULL; |