[Mono-bugs] [Bug 480152] string.Normalize() frequently produces incorrect output

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Apr 17 19:46:12 EDT 2010



--- Comment #30 from Damien Diederen <dd at crosstwine.com> 2010-04-17 23:46:11 UTC ---
Created an attachment (id=355160)
 --> (http://bugzilla.novell.com/attachment.cgi?id=355160)
Normalization: Prevent an unwarranted system exception when doing composition

This patches fixes additional problems reported by Tom via email.

Without this, the algorithm crashes on sequences such as
\u05D0\u0307\u05DC: the decomposition \u05D0\u05DC matches because
\u0307 has a higher combining class than \u05DC, but the decomposition
is nowhere to be found in some auxiliary table because that mapping is
not canonical.

The updated version considers that no matching decomposition was
found, and does not recompose.  This, however, is not *strictly*
correct; there may very well be cases where other, canonical, matching
decompositions follow the non-canonical one in the encoded database.

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list