From 9c6da35ea2a722123140714c1769c5610c704225 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 18 Aug 2004 13:21:56 +0000 Subject: [PATCH] (print_sanitized_utf8_string): Actually implement it. --- jnlib/ChangeLog | 5 +++++ jnlib/stringhelp.c | 5 +++-- 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 + + * stringhelp.c (print_sanitized_utf8_string): Actually implement + it. + 2004-06-21 Werner Koch * 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