[Mono-bugs] [Bug 80488][Nor] New - JISConvert does not handle some JIS X 0213 letters
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Jan 10 04:13:42 EST 2007
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80488
--- shadow/80488 2007-01-10 04:13:42.000000000 -0500
+++ shadow/80488.tmp.24994 2007-01-10 04:13:42.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 80488
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: atsushi at ximian.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: JISConvert does not handle some JIS X 0213 letters
+
+I18N.CJK.dll misses some JIS characters that are included in JIS X 0213.
+
+(In case the string could not be read, see the reference output.)
+
+using System;
+using System.Text;
+
+public class GTest
+{
+ public static void Main ()
+ {
+ string s = "高知県南国市大埇 宮﨑あおい 髙村薫 草彅剛";
+ Encoding e = Encoding.GetEncoding ("shift_jis");
+ byte [] bytes = e.GetBytes (s);
+ foreach (byte b in bytes)
+ Console.Write ("{0:X02} ", b);
+ Console.WriteLine ();
+ foreach (char c in e.GetString (bytes))
+ Console.Write ("{0:X04} ", (int) c);
+ }
+}
+
+
+Actual Results:
+8D 82 92 6D 8C A7 93 EC 8D 91 8E 73 91 E5 3F 3F 20 8B 7B 3F 82 A0 82 A8 82
+A2 20 3F 91 BA 8C 4F 20 91 90 3F 3F 8D 84
+9AD8 77E5 770C 5357 56FD 5E02 5927 003F 003F 0020 5BAE 003F 3042 304A 3044
+0020 003F 6751 85AB 0020 8349 003F 003F 525B
+
+Expected Results:
+8D 82 92 6D 8C A7 93 EC 8D 91 8E 73 91 E5 FA 9A 20 8B 7B FA B1 82 A0 82 A8
+82 A2 20 FB FC 91 BA 8C 4F 20 91 90 FA 67 8D 84
+9AD8 77E5 770C 5357 56FD 5E02 5927 57C7 0020 5BAE FA11 3042 304A 3044 0020
+9AD9 6751 85AB 0020 8349 5F45 525B
More information about the mono-bugs
mailing list