aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-08-18 13:21:56 +0000
committerWerner Koch <[email protected]>2004-08-18 13:21:56 +0000
commit9c6da35ea2a722123140714c1769c5610c704225 (patch)
treeb7e92c49e4cd4a4edf6072809db0f86fac34f40b
parent(get_passphrase): Make sure that the default (diff)
downloadgnupg-9c6da35ea2a722123140714c1769c5610c704225.tar.gz
gnupg-9c6da35ea2a722123140714c1769c5610c704225.zip
(print_sanitized_utf8_string): Actually implement
it.
Diffstat (limited to '')
-rw-r--r--jnlib/ChangeLog5
-rw-r--r--jnlib/stringhelp.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/jnlib/ChangeLog b/jnlib/ChangeLog
index e4df12a7f..db9b68d0d 100644
--- a/jnlib/ChangeLog
+++ b/jnlib/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-18 Werner Koch <[email protected]>
+
+ * stringhelp.c (print_sanitized_utf8_string): Actually implement
+ it.
+
2004-06-21 Werner Koch <[email protected]>
* logging.c (log_set_file): Do not close an old logstream if it
diff --git a/jnlib/stringhelp.c b/jnlib/stringhelp.c
index 4c8ab314b..568152fdd 100644
--- a/jnlib/stringhelp.c
+++ b/jnlib/stringhelp.c
@@ -392,8 +392,9 @@ print_sanitized_string (FILE *fp, const char *string, int delim)
size_t
print_sanitized_utf8_string (FILE *fp, const char *string, int delim)
{
- /* FIXME: convert to local characterset */
- return print_sanitized_string (fp, string, delim);
+ return string? print_sanitized_utf8_buffer (fp,
+ string, strlen (string),
+ delim) : 0;
}
/* Create a string from the buffer P of length N which is suitable for