changeset 6250:1c8caacac1de

[gaim-migrate @ 6746] Fixes bug #725868 - caused Win (ME, 98) Gaim to crash oncalls to isspace and ispunct committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Sun, 20 Jul 2003 23:47:00 +0000
parents 2c567a03a34a
children 8208ae37affc
files plugins/spellchk.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/spellchk.c	Sun Jul 20 21:00:23 2003 +0000
+++ b/plugins/spellchk.c	Sun Jul 20 23:47:00 2003 +0000
@@ -132,7 +132,7 @@
 	for (pos = 0; pos < strlen(m); pos++) {
 		switch (state) {
 		case 0: /* expecting word */
-			if (!isspace(m[pos]) && !ispunct(m[pos])) {
+			if (!g_ascii_isspace(m[pos]) && !g_ascii_ispunct(m[pos])) {
 				count++;
 				state = 1;
 			} else if (m[pos] == '<')
@@ -141,7 +141,7 @@
 		case 1: /* inside word */
 			if (m[pos] == '<')
 				state = 2;
-			else if (isspace(m[pos]) || ispunct(m[pos]))
+			else if (g_ascii_isspace(m[pos]) || g_ascii_ispunct(m[pos]))
 				state = 0;
 			break;
 		case 2: /* inside HTML tag */
@@ -161,7 +161,7 @@
 	for (pos = 0; pos < strlen(m) && count <= word; pos++) {
 		switch (state) {
 		case 0:
-			if (!isspace(m[pos]) && !ispunct(m[pos])) {
+			if (!g_ascii_isspace(m[pos]) && !g_ascii_ispunct(m[pos])) {
 				count++;
 				state = 1;
 			} else if (m[pos] == '<')
@@ -170,7 +170,7 @@
 		case 1:
 			if (m[pos] == '<')
 				state = 2;
-			else if (isspace(m[pos]) || ispunct(m[pos]))
+			else if (g_ascii_isspace(m[pos]) || g_ascii_ispunct(m[pos]))
 				state = 0;
 			break;
 		case 2:
@@ -349,7 +349,7 @@
 
 static gboolean non_empty(const char *s)
 {
-	while(*s && isspace(*s))
+	while(*s && g_ascii_isspace(*s))
 		s++;
 	return *s;
 }