# HG changeset patch # User Richard Laager # Date 1179676613 0 # Node ID 51f8dac490d7dfc900c128bdc189346208a156b8 # Parent 251ed95cc52ca5fe2d4b8162e028ff3b20122a9b If we're operating on ASCII characters only, we should use g_ascii_isalnum. diff -r 251ed95cc52c -r 51f8dac490d7 libpurple/util.c --- a/libpurple/util.c Sun May 20 15:02:03 2007 +0000 +++ b/libpurple/util.c Sun May 20 15:56:53 2007 +0000 @@ -4212,7 +4212,7 @@ gunichar c = g_utf8_get_char(iter); /* If the character is an ASCII character and is alphanumeric, * or one of the specified values, no need to escape */ - if (c < 128 && (isalnum(c) || c == '@' || c == '-' || + if (c < 128 && (g_ascii_isalnum(c) || c == '@' || c == '-' || c == '_' || c == '.' || c == '#')) { buf[j++] = c; } else {