Change usage of isblah() to g_ascii_isblah() to be more locale independent. (#133076)
authorDavid Schleef <ds@schleef.org>
Mon, 2 Feb 2004 21:08:52 +0000 (21:08 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 2 Feb 2004 21:08:52 +0000 (21:08 +0000)
Original commit message from CVS:
Change usage of isblah() to g_ascii_isblah() to be more locale
independent.  (#133076)
* gst/gsturi.c: (gst_uri_protocol_check_internal):
* gst/gstutils.c:
* gst/parse/parse.l:

ChangeLog
gst/gsturi.c
gst/gstutils.c
gst/parse/parse.l

index 233fd83..b135ef1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2004-02-02  David Schleef  <ds@schleef.org>
+
+       Change usage of isblah() to g_ascii_isblah() to be more locale
+       independent.  (#133076)
+       * gst/gsturi.c: (gst_uri_protocol_check_internal):
+       * gst/gstutils.c:
+       * gst/parse/parse.l:
+
 2004-02-02  Jon Trowbridge  <trow@gnu.org>
 
        reviewed by: David Schleef  <ds@schleef.org>
index 17f60d0..3a003d4 100644 (file)
@@ -30,7 +30,6 @@
 #include "gstmarshal.h"
 
 #include <string.h>
-#include <ctype.h>
 
 GST_DEBUG_CATEGORY_STATIC (gst_uri_handler_debug);
 #define GST_CAT_DEFAULT gst_uri_handler_debug
@@ -84,9 +83,9 @@ gst_uri_protocol_check_internal (const gchar *uri, gchar **endptr)
   g_assert (uri != NULL);
   g_assert (endptr != NULL);
 
-  if (isalpha (*check)) {
+  if (g_ascii_isalpha (*check)) {
     check++;
-    while (isalnum (*check)) check++;
+    while (g_ascii_isalnum (*check)) check++;
   }
 
   *endptr = check;
index 7f38a9d..2a89ecb 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <ctype.h>
 
 #include "gst_private.h"
 #include "gstutils.h"
index 9ef980b..ba88e00 100644 (file)
@@ -1,6 +1,5 @@
 %{
 #include <math.h>
-#include <ctype.h>
 #include <string.h>
 
 #include "../gst_private.h"