If we're operating on ASCII characters only, we should use g_ascii_isalnum.

Sun, 20 May 2007 15:56:53 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Sun, 20 May 2007 15:56:53 +0000
changeset 17261
65aa3164dcce
parent 17257
b405c8223a06
child 17262
05ece7b80efc

If we're operating on ASCII characters only, we should use g_ascii_isalnum.

libpurple/util.c file | annotate | diff | comparison | revisions
--- 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 {

mercurial