diff --git a/ChangeLog b/ChangeLog index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 448f9efcb..7b2bdb8a8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +1999-06-18 Sebastian Wilhelmi + + * gdate.c, gstrfuncs.c, gstring.c: Fixed the use of the + is..... and to..... macros, which take unsigned chars, not chars! + Thanks to Morten Welinder for pointing this out. + Thu Jun 3 16:30:31 PDT 1999 Manish Singh * gerror.c (g_on_error_query): check isatty() before querying so diff --git a/gdate.c b/gdate.c index 7b1f5281b..b278a5a4e 100644 --- a/gdate.c +++ b/gdate.c @@ -453,7 +453,7 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt) { gchar num[4][NUM_LEN+1]; gint i; - const gchar *s; + const guchar *s; /* We count 4, but store 3; so we can give an error * if there are 4. diff --git a/glib/gdate.c b/glib/gdate.c index 7b1f5281b..b278a5a4e 100644 --- a/glib/gdate.c +++ b/glib/gdate.c @@ -453,7 +453,7 @@ g_date_fill_parse_tokens (const gchar *str, GDateParseTokens *pt) { gchar num[4][NUM_LEN+1]; gint i; - const gchar *s; + const guchar *s; /* We count 4, but store 3; so we can give an error * if there are 4. diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 4ca4292a5..18f88a79c 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -929,7 +929,7 @@ g_printf_string_upper_bound (const gchar* format, void g_strdown (gchar *string) { - register gchar *s; + register guchar *s; g_return_if_fail (string != NULL); @@ -945,7 +945,7 @@ g_strdown (gchar *string) void g_strup (gchar *string) { - register gchar *s; + register guchar *s; g_return_if_fail (string != NULL); @@ -1103,7 +1103,7 @@ g_strescape (gchar *string) gchar* g_strchug (gchar *string) { - gchar *start; + guchar *start; g_return_val_if_fail (string != NULL, NULL); @@ -1125,7 +1125,8 @@ g_strchomp (gchar *string) if (!*string) return string; - for (s = string + strlen (string) - 1; s >= string && isspace (*s); s--) + for (s = string + strlen (string) - 1; s >= string && isspace ((guchar)*s); + s--) *s = '\0'; return string; diff --git a/glib/gstring.c b/glib/gstring.c index fd8e5122c..0ae4fabd4 100644 --- a/glib/gstring.c +++ b/glib/gstring.c @@ -441,7 +441,7 @@ GString* g_string_down (GString *fstring) { GRealString *string = (GRealString*)fstring; - gchar *s; + guchar *s; g_return_val_if_fail (string != NULL, NULL); @@ -460,7 +460,7 @@ GString* g_string_up (GString *fstring) { GRealString *string = (GRealString*)fstring; - gchar *s; + guchar *s; g_return_val_if_fail (string != NULL, NULL); diff --git a/gstrfuncs.c b/gstrfuncs.c index 4ca4292a5..18f88a79c 100644 --- a/gstrfuncs.c +++ b/gstrfuncs.c @@ -929,7 +929,7 @@ g_printf_string_upper_bound (const gchar* format, void g_strdown (gchar *string) { - register gchar *s; + register guchar *s; g_return_if_fail (string != NULL); @@ -945,7 +945,7 @@ g_strdown (gchar *string) void g_strup (gchar *string) { - register gchar *s; + register guchar *s; g_return_if_fail (string != NULL); @@ -1103,7 +1103,7 @@ g_strescape (gchar *string) gchar* g_strchug (gchar *string) { - gchar *start; + guchar *start; g_return_val_if_fail (string != NULL, NULL); @@ -1125,7 +1125,8 @@ g_strchomp (gchar *string) if (!*string) return string; - for (s = string + strlen (string) - 1; s >= string && isspace (*s); s--) + for (s = string + strlen (string) - 1; s >= string && isspace ((guchar)*s); + s--) *s = '\0'; return string; diff --git a/gstring.c b/gstring.c index fd8e5122c..0ae4fabd4 100644 --- a/gstring.c +++ b/gstring.c @@ -441,7 +441,7 @@ GString* g_string_down (GString *fstring) { GRealString *string = (GRealString*)fstring; - gchar *s; + guchar *s; g_return_val_if_fail (string != NULL, NULL); @@ -460,7 +460,7 @@ GString* g_string_up (GString *fstring) { GRealString *string = (GRealString*)fstring; - gchar *s; + guchar *s; g_return_val_if_fail (string != NULL, NULL);