diff options
author | Werner Koch <[email protected]> | 2004-08-18 13:21:56 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2004-08-18 13:21:56 +0000 |
commit | 9c6da35ea2a722123140714c1769c5610c704225 (patch) | |
tree | b7e92c49e4cd4a4edf6072809db0f86fac34f40b /jnlib/stringhelp.c | |
parent | (get_passphrase): Make sure that the default (diff) | |
download | gnupg-9c6da35ea2a722123140714c1769c5610c704225.tar.gz gnupg-9c6da35ea2a722123140714c1769c5610c704225.zip |
(print_sanitized_utf8_string): Actually implement
it.
Diffstat (limited to 'jnlib/stringhelp.c')
-rw-r--r-- | jnlib/stringhelp.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 |