to match g_strcasecmp, check if it is lower/upper before converting to
authorOwen Taylor <otaylor@redhat.com>
Mon, 4 Jun 2001 20:06:14 +0000 (20:06 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 4 Jun 2001 20:06:14 +0000 (20:06 +0000)
Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>

* gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
check if it is lower/upper before converting to upper/lower
[ not required by ISO... ] (#55682, Jon Trowbridge)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gstrfuncs.c
gstrfuncs.c

index 4e94c5f..a297e83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index 4e94c5f..a297e83 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index 4e94c5f..a297e83 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index 4e94c5f..a297e83 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index 4e94c5f..a297e83 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index 4e94c5f..a297e83 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index 4e94c5f..a297e83 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index 4e94c5f..a297e83 100644 (file)
@@ -1,3 +1,9 @@
+Mon Jun  4 16:02:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * gstrfuncs.c (g_strup/strdown): to match g_strcasecmp,
+       check if it is lower/upper before converting to upper/lower
+       [ not required by ISO... ] (#55682, Jon Trowbridge)
+
 Mon Jun  4 15:59:15 2001  Owen Taylor  <otaylor@redhat.com>
 
        * gunicode.h: Make a bit more standalone by adding include
index bf5ac55..734118a 100644 (file)
@@ -974,7 +974,8 @@ g_strdown (gchar *string)
   
   while (*s)
     {
-      *s = tolower (*s);
+      if (isupper (*s))
+       *s = tolower (*s);
       s++;
     }
   
@@ -992,7 +993,8 @@ g_strup (gchar *string)
 
   while (*s)
     {
-      *s = toupper (*s);
+      if (islower (*s))
+       *s = toupper (*s);
       s++;
     }
 
index bf5ac55..734118a 100644 (file)
@@ -974,7 +974,8 @@ g_strdown (gchar *string)
   
   while (*s)
     {
-      *s = tolower (*s);
+      if (isupper (*s))
+       *s = tolower (*s);
       s++;
     }
   
@@ -992,7 +993,8 @@ g_strup (gchar *string)
 
   while (*s)
     {
-      *s = toupper (*s);
+      if (islower (*s))
+       *s = toupper (*s);
       s++;
     }