From 560129adde5041ce5b9379a5225f6b3d4f31a1f9 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Wed, 29 Sep 2010 23:30:07 -0700 Subject: Fix use of g_convert(), thanks to an anonymous person who opened #676. --- nick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nick.c') diff --git a/nick.c b/nick.c index 15c07995..92d4c258 100644 --- a/nick.c +++ b/nick.c @@ -195,8 +195,8 @@ char *nick_gen( bee_user_t *bu ) accents don't just get stripped. Note that it depends on LC_CTYPE being set to something other than C/POSIX. */ if( part ) - part = asc = g_convert( part, -1, "ASCII//TRANSLIT//IGNORE", - "UTF-8", NULL, NULL, NULL ); + part = asc = g_convert_with_fallback( part, -1, "ASCII//TRANSLIT", + "UTF-8", "", NULL, NULL, NULL ); if( ret->len == 0 && part && isdigit( *part ) ) g_string_append_c( ret, '_' ); -- cgit v1.2.3