[Mono-bugs] [Bug 76760][Nor] New - I18N.CJK.CP949 can't decode UHC
Level 2 correctly
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Nov 19 10:50:50 EST 2005
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by perky at freebsd.org.
http://bugzilla.ximian.com/show_bug.cgi?id=76760
--- shadow/76760 2005-11-19 10:50:50.000000000 -0500
+++ shadow/76760.tmp.26756 2005-11-19 10:50:50.000000000 -0500
@@ -0,0 +1,38 @@
+Bug#: 76760
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: Every platforms
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: perky at FreeBSD.org
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: I18N.CJK.CP949 can't decode UHC Level 2 correctly
+
+(I'm the author of the module)
+
+I18N.CJK.CP949 codec can't decode characters on UHC Level 2
+for CP949 encoding due to invalid codepoint calculation on
+KoreanEncoding:GetChars. This was a sort of no brainer copy &
+paste bug. :-) Sorry for the mistake.
+
+
+--- CP949.cs.orig 2005-11-19 23:25:02.921875000 +0900
++++ CP949.cs 2005-11-19 23:52:48.812500000 +0900
+@@ -172,7 +172,7 @@
+ else
+ c1 = (char)0;
+ } else if (useUHC && lastByte <= 0xC6 && b < 0xa1) { //
+UHC Level 2
+- int ord = 14532 + (lastByte - 0x81) * 84;
++ int ord = 14532 + (lastByte - 0xA1) * 84;
+
+ if (b >= 0x41 && b <= 0x5A)
+ ord += b - 0x41;
More information about the mono-bugs
mailing list