Mercurial > pidgin
diff libpurple/util.c @ 17161:51f8dac490d7
If we're operating on ASCII characters only, we should use g_ascii_isalnum.
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Sun, 20 May 2007 15:56:53 +0000 |
| parents | fdd52f7651c7 |
| children | d8102e923bd1 |
line wrap: on
line diff
--- 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 {
