aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/stringhelp.c
diff options
context:
space:
mode:
Diffstat (limited to 'jnlib/stringhelp.c')
-rw-r--r--jnlib/stringhelp.c5
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