From 9c6da35ea2a722123140714c1769c5610c704225 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 18 Aug 2004 13:21:56 +0000 Subject: (print_sanitized_utf8_string): Actually implement it. --- jnlib/stringhelp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'jnlib/stringhelp.c') 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 -- cgit