From 198830aa35fd43b700f40398657338e24455489b Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 26 Feb 2002 03:01:09 +0000 Subject: [PATCH] Account for some characters having now uppercase/lowercase equivalents in Mon Feb 25 21:58:01 2002 Owen Taylor * glib/guniprop.c (g_unichar_toupper/lower): Account for some characters having now uppercase/lowercase equivalents in code, docs. (#65416) --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ glib/guniprop.c | 8 ++++---- 9 files changed, 52 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 21509139a..a71767c0c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 21509139a..a71767c0c 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 21509139a..a71767c0c 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 21509139a..a71767c0c 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 21509139a..a71767c0c 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 21509139a..a71767c0c 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 21509139a..a71767c0c 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 21509139a..a71767c0c 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Mon Feb 25 21:58:01 2002 Owen Taylor + + * glib/guniprop.c (g_unichar_toupper/lower): Account + for some characters having now uppercase/lowercase + equivalents in code, docs. (#65416) + Mon Feb 25 16:31:09 2002 Owen Taylor * glib/gshell.c (tokenize_command_line): Fix quoting diff --git a/glib/guniprop.c b/glib/guniprop.c index cd8f65753..46d2cecfc 100644 --- a/glib/guniprop.c +++ b/glib/guniprop.c @@ -350,7 +350,7 @@ g_unichar_iswide (gunichar c) * * Return value: the result of converting @c to uppercase. * If @c is not an lowercase or titlecase character, - * @c is returned unchanged. + * or has no upper case equivalent @c is returned unchanged. **/ gunichar g_unichar_toupper (gunichar c) @@ -365,7 +365,7 @@ g_unichar_toupper (gunichar c) return p[0] * 256 + p[1]; } else - return val; + return val ? val : c; } else if (t == G_UNICODE_TITLECASE_LETTER) { @@ -387,7 +387,7 @@ g_unichar_toupper (gunichar c) * * Return value: the result of converting @c to lower case. * If @c is not an upperlower or titlecase character, - * @c is returned unchanged. + * or has no lowercase equivalent @c is returned unchanged. **/ gunichar g_unichar_tolower (gunichar c) @@ -402,7 +402,7 @@ g_unichar_tolower (gunichar c) return p[0] * 256 + p[1]; } else - return val; + return val ? val : c; } else if (t == G_UNICODE_TITLECASE_LETTER) {