diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2010-05-17 12:25:04 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2010-05-17 12:25:04 +0400 |
commit | 0ff9ac2db6c30b092bebcb2155e4f57560feafc4 (patch) | |
tree | 3c465ca4e85ae44812b9c932a37f42b794aa8cbb /mcs/class/corlib/Mono.Globalization.Unicode | |
parent | 3683a0c59602ed5845170215903beac83d86898e (diff) |
2010-05-17 Atsushi Enomoto <atsushi@ximian.com>
* SimpleCollator.cs : fix extender search index for LastIndexOf().
Fixed bug #605094.
* StringTest.cs : add test for bug #605094.
svn path=/trunk/mcs/; revision=157414
Diffstat (limited to 'mcs/class/corlib/Mono.Globalization.Unicode')
-rw-r--r-- | mcs/class/corlib/Mono.Globalization.Unicode/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/Mono.Globalization.Unicode/SimpleCollator.cs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/corlib/Mono.Globalization.Unicode/ChangeLog b/mcs/class/corlib/Mono.Globalization.Unicode/ChangeLog index 5550f25e660..7eaceed218c 100644 --- a/mcs/class/corlib/Mono.Globalization.Unicode/ChangeLog +++ b/mcs/class/corlib/Mono.Globalization.Unicode/ChangeLog @@ -1,3 +1,8 @@ +2010-05-17 Atsushi Enomoto <atsushi@ximian.com> + + * SimpleCollator.cs : fix extender search index for LastIndexOf(). + Fixed bug #605094. + 2010-04-20 Damien Diederen <dd@crosstwine.com> * Normalization.cs: Really apply canonical reordering "recursively." diff --git a/mcs/class/corlib/Mono.Globalization.Unicode/SimpleCollator.cs b/mcs/class/corlib/Mono.Globalization.Unicode/SimpleCollator.cs index 6c187cd9d2e..44b3dd24c90 100644 --- a/mcs/class/corlib/Mono.Globalization.Unicode/SimpleCollator.cs +++ b/mcs/class/corlib/Mono.Globalization.Unicode/SimpleCollator.cs @@ -2098,7 +2098,7 @@ Console.WriteLine ("==== {0} {1} {2} {3} {4} {5} {6} {7} {8}", s, si, send, leng // check next _primary_ character. if (ext != ExtenderType.None) { byte diacritical = 0; - for (int tmp = 0; ; tmp--) { + for (int tmp = idx; ; tmp--) { if (tmp < 0) // heading extender return false; if (IsIgnorable (s [tmp], opt)) |