Fix off-by-one error in g_unicode_canonical_ordering (bug #113260).

2003-05-19  Noah Levitt  <nlevitt@columbia.edu>

	* glib/gunidecomp.c: Fix off-by-one error in
	g_unicode_canonical_ordering (bug #113260).
This commit is contained in:
Noah Levitt 2003-05-19 15:54:48 +00:00 committed by Noah Levitt
parent 20b6300c96
commit 6bc2ee510a
7 changed files with 35 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-05-19 Noah Levitt <nlevitt@columbia.edu>
* glib/gunidecomp.c: Fix off-by-one error in
g_unicode_canonical_ordering (bug #113260).
2003-05-19 Arafat Medini <lumina@silverpen.de>
* ar.po: Added ar to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2003-05-19 Noah Levitt <nlevitt@columbia.edu>
* glib/gunidecomp.c: Fix off-by-one error in
g_unicode_canonical_ordering (bug #113260).
2003-05-19 Arafat Medini <lumina@silverpen.de>
* ar.po: Added ar to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2003-05-19 Noah Levitt <nlevitt@columbia.edu>
* glib/gunidecomp.c: Fix off-by-one error in
g_unicode_canonical_ordering (bug #113260).
2003-05-19 Arafat Medini <lumina@silverpen.de>
* ar.po: Added ar to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2003-05-19 Noah Levitt <nlevitt@columbia.edu>
* glib/gunidecomp.c: Fix off-by-one error in
g_unicode_canonical_ordering (bug #113260).
2003-05-19 Arafat Medini <lumina@silverpen.de>
* ar.po: Added ar to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2003-05-19 Noah Levitt <nlevitt@columbia.edu>
* glib/gunidecomp.c: Fix off-by-one error in
g_unicode_canonical_ordering (bug #113260).
2003-05-19 Arafat Medini <lumina@silverpen.de>
* ar.po: Added ar to ALL_LINGUAS

View File

@ -1,3 +1,8 @@
2003-05-19 Noah Levitt <nlevitt@columbia.edu>
* glib/gunidecomp.c: Fix off-by-one error in
g_unicode_canonical_ordering (bug #113260).
2003-05-19 Arafat Medini <lumina@silverpen.de>
* ar.po: Added ar to ALL_LINGUAS

View File

@ -65,14 +65,14 @@ g_unicode_canonical_ordering (gunichar *string,
{
gsize j;
/* Percolate item leftward through string. */
for (j = i; j > 0; --j)
for (j = i + 1; j > 0; --j)
{
gunichar t;
if (COMBINING_CLASS (string[j]) <= next)
if (COMBINING_CLASS (string[j - 1]) <= next)
break;
t = string[j + 1];
string[j + 1] = string[j];
string[j] = t;
t = string[j];
string[j] = string[j - 1];
string[j - 1] = t;
swap = 1;
}
/* We're re-entering the loop looking at the old