msvcrt:string Fix codepage table 1361 (Korean Johab)

Alexandre Goujon ale.goujon at gmail.com
Sat Aug 28 07:12:13 CDT 2010


I know that libs/wine/c_1361.c is generated ("DO NOT EDIT!!").
However (union cptable)cptable_1361.dbcs->lead_bytes needs to be modified according tests

---
 dlls/msvcrt/tests/string.c |   12 ++++--------
 libs/wine/c_1361.c         |    2 +-
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c
index 94c2fa3..9d4f3b1 100644
--- a/dlls/msvcrt/tests/string.c
+++ b/dlls/msvcrt/tests/string.c
@@ -354,16 +354,12 @@ static void test_mbcp(void)
 
     _setmbcp(1361);
     expect_eq(_ismbblead(0x80), 0, int, "%d");
-    todo_wine {
-      expect_eq(_ismbblead(0x81), 1, int, "%d");
-      expect_eq(_ismbblead(0x83), 1, int, "%d");
-    }
+    expect_eq(_ismbblead(0x81), 1, int, "%d");
+    expect_eq(_ismbblead(0x83), 1, int, "%d");
     expect_eq(_ismbblead(0x84), 1, int, "%d");
     expect_eq(_ismbblead(0xd3), 1, int, "%d");
     expect_eq(_ismbblead(0xd7), 0, int, "%d");
-    todo_wine {
-      expect_eq(_ismbblead(0xd8), 1, int, "%d");
-    }
+    expect_eq(_ismbblead(0xd8), 1, int, "%d");
     expect_eq(_ismbblead(0xd9), 1, int, "%d");
 
     expect_eq(_ismbbtrail(0x30), 0, int, "%d");
@@ -829,7 +825,7 @@ static void test_ismbclegal(void) {
             break;
         }
     }
-    todo_wine ok(!err, "_ismbclegal (1361) : Expected 0x%x, got 0x%x (0x%x)\n", exp, ret, i);
+    ok(!err, "_ismbclegal (1361) : Expected 0x%x, got 0x%x (0x%x)\n", exp, ret, i);
 
     _setmbcp(prev_cp);
 }
diff --git a/libs/wine/c_1361.c b/libs/wine/c_1361.c
index b424cb1..50d2c47 100644
--- a/libs/wine/c_1361.c
+++ b/libs/wine/c_1361.c
@@ -8902,6 +8902,6 @@ const struct dbcs_table cptable_1361 =
     uni2cp_low,
     uni2cp_high,
     {
-        0x84, 0xd3, 0xd9, 0xde, 0xe0, 0xf9, 0x00, 0x00
+        0x81, 0xd3, 0xd8, 0xde, 0xe0, 0xf9, 0x00, 0x00
     }
 };
-- 
1.7.0.4




More information about the wine-patches mailing list