From 7fc9e45dd881536a5f0f8fe63a903e82e9c2f5fa Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 22 Mar 2019 12:42:13 +0100 Subject: [PATCH] make_unicode: Don't output array sizes that could be over-estimated. Signed-off-by: Alexandre Julliard --- libs/port/c_037.c | 2 +- libs/port/c_10000.c | 2 +- libs/port/c_10001.c | 2 +- libs/port/c_10002.c | 2 +- libs/port/c_10003.c | 2 +- libs/port/c_10004.c | 2 +- libs/port/c_10005.c | 2 +- libs/port/c_10006.c | 2 +- libs/port/c_10007.c | 2 +- libs/port/c_10008.c | 2 +- libs/port/c_10010.c | 2 +- libs/port/c_10017.c | 2 +- libs/port/c_10021.c | 2 +- libs/port/c_10029.c | 2 +- libs/port/c_1006.c | 2 +- libs/port/c_10079.c | 2 +- libs/port/c_10081.c | 2 +- libs/port/c_10082.c | 2 +- libs/port/c_1026.c | 2 +- libs/port/c_1250.c | 2 +- libs/port/c_1251.c | 2 +- libs/port/c_1252.c | 2 +- libs/port/c_1253.c | 2 +- libs/port/c_1254.c | 2 +- libs/port/c_1255.c | 2 +- libs/port/c_1256.c | 2 +- libs/port/c_1257.c | 2 +- libs/port/c_1258.c | 2 +- libs/port/c_1361.c | 2 +- libs/port/c_20127.c | 2 +- libs/port/c_20866.c | 2 +- libs/port/c_20932.c | 2 +- libs/port/c_21866.c | 2 +- libs/port/c_28591.c | 2 +- libs/port/c_28592.c | 2 +- libs/port/c_28593.c | 2 +- libs/port/c_28594.c | 2 +- libs/port/c_28595.c | 2 +- libs/port/c_28596.c | 2 +- libs/port/c_28597.c | 2 +- libs/port/c_28598.c | 2 +- libs/port/c_28599.c | 2 +- libs/port/c_28600.c | 2 +- libs/port/c_28603.c | 2 +- libs/port/c_28604.c | 2 +- libs/port/c_28605.c | 2 +- libs/port/c_28606.c | 2 +- libs/port/c_424.c | 2 +- libs/port/c_437.c | 2 +- libs/port/c_500.c | 2 +- libs/port/c_737.c | 2 +- libs/port/c_775.c | 2 +- libs/port/c_850.c | 2 +- libs/port/c_852.c | 2 +- libs/port/c_855.c | 2 +- libs/port/c_856.c | 2 +- libs/port/c_857.c | 2 +- libs/port/c_860.c | 2 +- libs/port/c_861.c | 2 +- libs/port/c_862.c | 2 +- libs/port/c_863.c | 2 +- libs/port/c_864.c | 2 +- libs/port/c_865.c | 2 +- libs/port/c_866.c | 2 +- libs/port/c_869.c | 2 +- libs/port/c_874.c | 2 +- libs/port/c_875.c | 2 +- libs/port/c_878.c | 2 +- libs/port/c_932.c | 2 +- libs/port/c_936.c | 2 +- libs/port/c_949.c | 2 +- libs/port/c_950.c | 2 +- tools/make_unicode | 3 +-- 73 files changed, 73 insertions(+), 74 deletions(-) diff --git a/libs/port/c_037.c b/libs/port/c_037.c index 18e25f3cfba..22b9ec83e8a 100644 --- a/libs/port/c_037.c +++ b/libs/port/c_037.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0038, 0x0039, 0x00b3, 0x00db, 0x00dc, 0x00d9, 0x00da, 0x009f }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x37, 0x2d, 0x2e, 0x2f, diff --git a/libs/port/c_10000.c b/libs/port/c_10000.c index bae5e52b517..c38602e2845 100644 --- a/libs/port/c_10000.c +++ b/libs/port/c_10000.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 }; -static const unsigned char uni2cp_low[4894] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10001.c b/libs/port/c_10001.c index 5bee88e42bd..d5733e34b77 100644 --- a/libs/port/c_10001.c +++ b/libs/port/c_10001.c @@ -3541,7 +3541,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x65, 0x66, 0x67, 0x68, 0x69, 0x00, 0x00, 0x00 }; -static const unsigned short uni2cp_low[27631] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_10002.c b/libs/port/c_10002.c index dad36486337..c0ce4289bbc 100644 --- a/libs/port/c_10002.c +++ b/libs/port/c_10002.c @@ -2947,7 +2947,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x56, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; -static const unsigned short uni2cp_low[27673] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_10003.c b/libs/port/c_10003.c index 32ac146c398..0c333d3c438 100644 --- a/libs/port/c_10003.c +++ b/libs/port/c_10003.c @@ -3046,7 +3046,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x55, 0x56, 0x57, 0x58, 0x59, 0x5a, 0x00, 0x00 }; -static const unsigned short uni2cp_low[39984] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_10004.c b/libs/port/c_10004.c index c80fcc2ab6e..7a186f484ce 100644 --- a/libs/port/c_10004.c +++ b/libs/port/c_10004.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x06af, 0x0688, 0x0691, 0xf83e, 0xf83f, 0xf840, 0x0698, 0x06d2 }; -static const unsigned char uni2cp_low[5476] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10005.c b/libs/port/c_10005.c index 137de05b3a4..011dbde6194 100644 --- a/libs/port/c_10005.c +++ b/libs/port/c_10005.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x05e8, 0x05e9, 0x05ea, 0xf81a, 0xf81b, 0xf81c, 0xf81d, 0xf81e }; -static const unsigned char uni2cp_low[5610] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10006.c b/libs/port/c_10006.c index 1ccdffa9805..f9ae17aff44 100644 --- a/libs/port/c_10006.c +++ b/libs/port/c_10006.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x03c7, 0x03c5, 0x03b6, 0x03ca, 0x03cb, 0x0390, 0x03b0, 0x003f }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10007.c b/libs/port/c_10007.c index 0934fc5e2b1..5e791dfef5a 100644 --- a/libs/port/c_10007.c +++ b/libs/port/c_10007.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x00a4 }; -static const unsigned char uni2cp_low[5406] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10008.c b/libs/port/c_10008.c index 48699a99ecb..62cfa7a1d53 100644 --- a/libs/port/c_10008.c +++ b/libs/port/c_10008.c @@ -2749,7 +2749,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; -static const unsigned short uni2cp_low[27310] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_10010.c b/libs/port/c_10010.c index 90b83269b6e..469b90f1c27 100644 --- a/libs/port/c_10010.c +++ b/libs/port/c_10010.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 }; -static const unsigned char uni2cp_low[5145] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10017.c b/libs/port/c_10017.c index 165fc52e134..f71a6c95654 100644 --- a/libs/port/c_10017.c +++ b/libs/port/c_10017.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x20ac }; -static const unsigned char uni2cp_low[5403] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10021.c b/libs/port/c_10021.c index 1665fa175ff..5742d9a9c14 100644 --- a/libs/port/c_10021.c +++ b/libs/port/c_10021.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0e58, 0x0e59, 0x00ae, 0x00a9, 0x003f, 0x003f, 0x00fe, 0x003f }; -static const unsigned char uni2cp_low[5138] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10029.c b/libs/port/c_10029.c index af4f00623a6..bcecb4291ff 100644 --- a/libs/port/c_10029.c +++ b/libs/port/c_10029.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00dd, 0x00fd, 0x0137, 0x017b, 0x0141, 0x017c, 0x0122, 0x02c7 }; -static const unsigned char uni2cp_low[4887] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1006.c b/libs/port/c_1006.c index da6575eb0a2..fc2c6f6e54f 100644 --- a/libs/port/c_1006.c +++ b/libs/port/c_1006.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0xfe8b, 0xfef1, 0xfef2, 0xfef3, 0xfbb0, 0xfbae, 0xfe7c, 0xfe7d }; -static const unsigned char uni2cp_low[5165] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10079.c b/libs/port/c_10079.c index 31533fc9eb2..8937ad4cd0e 100644 --- a/libs/port/c_10079.c +++ b/libs/port/c_10079.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 }; -static const unsigned char uni2cp_low[4889] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10081.c b/libs/port/c_10081.c index 6d4733eee98..3c9c15e848b 100644 --- a/libs/port/c_10081.c +++ b/libs/port/c_10081.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 }; -static const unsigned char uni2cp_low[5104] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_10082.c b/libs/port/c_10082.c index b2a4ce70740..e6433e37418 100644 --- a/libs/port/c_10082.c +++ b/libs/port/c_10082.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00af, 0x03c0, 0x00cb, 0x02da, 0x00b8, 0x00ca, 0x00e6, 0x02c7 }; -static const unsigned char uni2cp_low[5145] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1026.c b/libs/port/c_1026.c index 4887024ab27..f6e8bce2bac 100644 --- a/libs/port/c_1026.c +++ b/libs/port/c_1026.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0038, 0x0039, 0x00b3, 0x00db, 0x0022, 0x00d9, 0x00da, 0x009f }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x37, 0x2d, 0x2e, 0x2f, diff --git a/libs/port/c_1250.c b/libs/port/c_1250.c index 81ef082ce84..d31ebdba5b5 100644 --- a/libs/port/c_1250.c +++ b/libs/port/c_1250.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0159, 0x016f, 0x00fa, 0x0171, 0x00fc, 0x00fd, 0x0163, 0x02d9 }; -static const unsigned char uni2cp_low[4055] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1251.c b/libs/port/c_1251.c index 51e929aff70..85829f2b713 100644 --- a/libs/port/c_1251.c +++ b/libs/port/c_1251.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f }; -static const unsigned char uni2cp_low[2803] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1252.c b/libs/port/c_1252.c index 5a0d23ab214..8933ec16508 100644 --- a/libs/port/c_1252.c +++ b/libs/port/c_1252.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff }; -static const unsigned char uni2cp_low[4043] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1253.c b/libs/port/c_1253.c index 79675f0c2ab..67f8b90ea01 100644 --- a/libs/port/c_1253.c +++ b/libs/port/c_1253.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x03c8, 0x03c9, 0x03ca, 0x03cb, 0x03cc, 0x03cd, 0x03ce, 0xf8fb }; -static const unsigned char uni2cp_low[2881] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1254.c b/libs/port/c_1254.c index 4cf3e261213..1cf716f0dd6 100644 --- a/libs/port/c_1254.c +++ b/libs/port/c_1254.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0131, 0x015f, 0x00ff }; -static const unsigned char uni2cp_low[4055] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1255.c b/libs/port/c_1255.c index 521da855aaa..f9201b0fe0d 100644 --- a/libs/port/c_1255.c +++ b/libs/port/c_1255.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x05e8, 0x05e9, 0x05ea, 0xf894, 0xf895, 0x200e, 0x200f, 0xf896 }; -static const unsigned char uni2cp_low[2060] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1256.c b/libs/port/c_1256.c index a7b1e16fe07..09a2c85dc24 100644 --- a/libs/port/c_1256.c +++ b/libs/port/c_1256.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0651, 0x00f9, 0x0652, 0x00fb, 0x00fc, 0x200e, 0x200f, 0x06d2 }; -static const unsigned char uni2cp_low[2318] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1257.c b/libs/port/c_1257.c index f8acd5b8228..eb27154d01e 100644 --- a/libs/port/c_1257.c +++ b/libs/port/c_1257.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0173, 0x0142, 0x015b, 0x016b, 0x00fc, 0x017c, 0x017e, 0x02d9 }; -static const unsigned char uni2cp_low[1739] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1258.c b/libs/port/c_1258.c index ef6c76e4e6d..62680c5dc0b 100644 --- a/libs/port/c_1258.c +++ b/libs/port/c_1258.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x01b0, 0x20ab, 0x00ff }; -static const unsigned char uni2cp_low[2010] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_1361.c b/libs/port/c_1361.c index f9b83df71f3..66bbe77cf89 100644 --- a/libs/port/c_1361.c +++ b/libs/port/c_1361.c @@ -3805,7 +3805,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x70, 0x71, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; -static const unsigned short uni2cp_low[37401] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_20127.c b/libs/port/c_20127.c index 76583aa1427..f028d081497 100644 --- a/libs/port/c_20127.c +++ b/libs/port/c_20127.c @@ -39,7 +39,7 @@ static const WCHAR cp2uni[256] = 0x0078, 0x0079, 0x007a, 0x007b, 0x007c, 0x007d, 0x007e, 0x007f }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_20866.c b/libs/port/c_20866.c index 2831375e316..66a9453d7af 100644 --- a/libs/port/c_20866.c +++ b/libs/port/c_20866.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a }; -static const unsigned char uni2cp_low[5403] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_20932.c b/libs/port/c_20932.c index 5c8664cfc81..5aa3590750c 100644 --- a/libs/port/c_20932.c +++ b/libs/port/c_20932.c @@ -2683,7 +2683,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00 }; -static const unsigned short uni2cp_low[27558] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_21866.c b/libs/port/c_21866.c index c7103bb2803..4776ec5a15d 100644 --- a/libs/port/c_21866.c +++ b/libs/port/c_21866.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a }; -static const unsigned char uni2cp_low[5403] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28591.c b/libs/port/c_28591.c index 2cdd870b9f8..de7419595fb 100644 --- a/libs/port/c_28591.c +++ b/libs/port/c_28591.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28592.c b/libs/port/c_28592.c index ed765441ea4..4e764523bef 100644 --- a/libs/port/c_28592.c +++ b/libs/port/c_28592.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0159, 0x016f, 0x00fa, 0x0171, 0x00fc, 0x00fd, 0x0163, 0x02d9 }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28593.c b/libs/port/c_28593.c index df250616754..0167ea8c801 100644 --- a/libs/port/c_28593.c +++ b/libs/port/c_28593.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x011d, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x016d, 0x015d, 0x02d9 }; -static const unsigned char uni2cp_low[5136] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28594.c b/libs/port/c_28594.c index f50d96531bc..757d15fc2d1 100644 --- a/libs/port/c_28594.c +++ b/libs/port/c_28594.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x0173, 0x00fa, 0x00fb, 0x00fc, 0x0169, 0x016b, 0x02d9 }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28595.c b/libs/port/c_28595.c index 0c06b70b4be..559c8803a9f 100644 --- a/libs/port/c_28595.c +++ b/libs/port/c_28595.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0458, 0x0459, 0x045a, 0x045b, 0x045c, 0x00a7, 0x045e, 0x045f }; -static const unsigned char uni2cp_low[5403] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28596.c b/libs/port/c_28596.c index 39a6b6af45c..711084d630f 100644 --- a/libs/port/c_28596.c +++ b/libs/port/c_28596.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0xf7ed, 0xf7ee, 0xf7ef, 0xf7f0, 0xf7f1, 0xf7f2, 0xf7f3, 0xf7f4 }; -static const unsigned char uni2cp_low[5372] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28597.c b/libs/port/c_28597.c index 4464adf5a06..4e64910eb1d 100644 --- a/libs/port/c_28597.c +++ b/libs/port/c_28597.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x03c8, 0x03c9, 0x03ca, 0x03cb, 0x03cc, 0x03cd, 0x03ce, 0xf7c7 }; -static const unsigned char uni2cp_low[5142] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28598.c b/libs/port/c_28598.c index 0546a3e9a49..60a7878fcb8 100644 --- a/libs/port/c_28598.c +++ b/libs/port/c_28598.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x05e8, 0x05e9, 0x05ea, 0xf7bd, 0xf7be, 0x200e, 0x200f, 0xf7bf }; -static const unsigned char uni2cp_low[5346] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28599.c b/libs/port/c_28599.c index 385047eb85d..43b0183dc56 100644 --- a/libs/port/c_28599.c +++ b/libs/port/c_28599.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0131, 0x015f, 0x00ff }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28600.c b/libs/port/c_28600.c index bbc21a6b0c9..397e1586811 100644 --- a/libs/port/c_28600.c +++ b/libs/port/c_28600.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x0173, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x0138 }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28603.c b/libs/port/c_28603.c index c1e49fd4feb..3ffdf47c0c0 100644 --- a/libs/port/c_28603.c +++ b/libs/port/c_28603.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0173, 0x0142, 0x015b, 0x016b, 0x00fc, 0x017c, 0x017e, 0x2019 }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28604.c b/libs/port/c_28604.c index ab2e1601263..e8d065aaccc 100644 --- a/libs/port/c_28604.c +++ b/libs/port/c_28604.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x0177, 0x00ff }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28605.c b/libs/port/c_28605.c index 2848eded750..1beaf49d384 100644 --- a/libs/port/c_28605.c +++ b/libs/port/c_28605.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_28606.c b/libs/port/c_28606.c index cab3ee1c0a5..644031f8fae 100644 --- a/libs/port/c_28606.c +++ b/libs/port/c_28606.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0171, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0119, 0x021b, 0x00ff }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_424.c b/libs/port/c_424.c index 8b7da590747..396d6ab27a7 100644 --- a/libs/port/c_424.c +++ b/libs/port/c_424.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0038, 0x0039, 0x00b3, 0x003f, 0x003f, 0x003f, 0x00fe, 0x009f }; -static const unsigned char uni2cp_low[5119] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x37, 0x2d, 0x2e, 0x2f, diff --git a/libs/port/c_437.c b/libs/port/c_437.c index 9df7a7f7094..a96dfd773e8 100644 --- a/libs/port/c_437.c +++ b/libs/port/c_437.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_500.c b/libs/port/c_500.c index 42e81076549..4638ab397fa 100644 --- a/libs/port/c_500.c +++ b/libs/port/c_500.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0038, 0x0039, 0x00b3, 0x00db, 0x00dc, 0x00d9, 0x00da, 0x009f }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x37, 0x2d, 0x2e, 0x2f, diff --git a/libs/port/c_737.c b/libs/port/c_737.c index 0399c4bfd75..d354abfb717 100644 --- a/libs/port/c_737.c +++ b/libs/port/c_737.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_775.c b/libs/port/c_775.c index 1b3594c8dff..83af4e1da20 100644 --- a/libs/port/c_775.c +++ b/libs/port/c_775.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x00b9, 0x00b3, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_850.c b/libs/port/c_850.c index 674651f0c3f..1758f322c6c 100644 --- a/libs/port/c_850.c +++ b/libs/port/c_850.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x00a8, 0x00b7, 0x00b9, 0x00b3, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_852.c b/libs/port/c_852.c index d614e8ab134..bf72038d274 100644 --- a/libs/port/c_852.c +++ b/libs/port/c_852.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x00a8, 0x02d9, 0x0171, 0x0158, 0x0159, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4884] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_855.c b/libs/port/c_855.c index 807c6790ee8..cd52aad890b 100644 --- a/libs/port/c_855.c +++ b/libs/port/c_855.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x042d, 0x0449, 0x0429, 0x0447, 0x0427, 0x00a7, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[5403] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_856.c b/libs/port/c_856.c index 0b152b6096e..fa2bd490fb8 100644 --- a/libs/port/c_856.c +++ b/libs/port/c_856.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x00b0, 0x00a8, 0x00b7, 0x00b9, 0x00b3, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[5119] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_857.c b/libs/port/c_857.c index 9bd36c1c5bb..e4651699adb 100644 --- a/libs/port/c_857.c +++ b/libs/port/c_857.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x00a8, 0x00b7, 0x00b9, 0x00b3, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[5099] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_860.c b/libs/port/c_860.c index d6d147c1117..5e50a6a7e68 100644 --- a/libs/port/c_860.c +++ b/libs/port/c_860.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_861.c b/libs/port/c_861.c index 67cd1438a1b..b72cc1d2e93 100644 --- a/libs/port/c_861.c +++ b/libs/port/c_861.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_862.c b/libs/port/c_862.c index 18a8a997b74..0ce99eadb65 100644 --- a/libs/port/c_862.c +++ b/libs/port/c_862.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[5162] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_863.c b/libs/port/c_863.c index 3bea216b636..eec7837230d 100644 --- a/libs/port/c_863.c +++ b/libs/port/c_863.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_864.c b/libs/port/c_864.c index e3088b6be9c..ff17014f483 100644 --- a/libs/port/c_864.c +++ b/libs/port/c_864.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0xfed5, 0xfef5, 0xfef6, 0xfedd, 0xfed9, 0xfef1, 0x25a0, 0xf8c0 }; -static const unsigned char uni2cp_low[5342] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_865.c b/libs/port/c_865.c index 5b5f1ce1bb7..ffbe8e170ba 100644 --- a/libs/port/c_865.c +++ b/libs/port/c_865.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x207f, 0x00b2, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_866.c b/libs/port/c_866.c index 37fb6b0f37a..8eb6d19edb0 100644 --- a/libs/port/c_866.c +++ b/libs/port/c_866.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x2219, 0x00b7, 0x221a, 0x2116, 0x00a4, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[5403] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_869.c b/libs/port/c_869.c index 70cff9a5fc5..38f52cc370d 100644 --- a/libs/port/c_869.c +++ b/libs/port/c_869.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x00b0, 0x00a8, 0x03c9, 0x03cb, 0x03b0, 0x03ce, 0x25a0, 0x00a0 }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_874.c b/libs/port/c_874.c index e5a83388a66..fa8db37fba3 100644 --- a/libs/port/c_874.c +++ b/libs/port/c_874.c @@ -73,7 +73,7 @@ static const WCHAR cp2uni[512] = 0x0e58, 0x0e59, 0x0e5a, 0x0e5b, 0xf8c5, 0xf8c6, 0xf8c7, 0xf8c8 }; -static const unsigned char uni2cp_low[2588] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_875.c b/libs/port/c_875.c index ba6f2e64917..768305ad55b 100644 --- a/libs/port/c_875.c +++ b/libs/port/c_875.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x0038, 0x0039, 0x00b3, 0x00a9, 0x001a, 0x001a, 0x00bb, 0x009f }; -static const unsigned char uni2cp_low[4927] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x37, 0x2d, 0x2e, 0x2f, diff --git a/libs/port/c_878.c b/libs/port/c_878.c index 16f0e257e32..cf294fc3a51 100644 --- a/libs/port/c_878.c +++ b/libs/port/c_878.c @@ -40,7 +40,7 @@ static const WCHAR cp2uni[256] = 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a }; -static const unsigned char uni2cp_low[5403] = +static const unsigned char uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, diff --git a/libs/port/c_932.c b/libs/port/c_932.c index 51293800548..f42b2a15c97 100644 --- a/libs/port/c_932.c +++ b/libs/port/c_932.c @@ -2056,7 +2056,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x00, 0x00, 0x00 }; -static const unsigned short uni2cp_low[27210] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_936.c b/libs/port/c_936.c index 09786ebbace..b6b275b93de 100644 --- a/libs/port/c_936.c +++ b/libs/port/c_936.c @@ -4234,7 +4234,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x00 }; -static const unsigned short uni2cp_low[28622] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_949.c b/libs/port/c_949.c index da1f1c9f5d8..6e8c5d1b5c9 100644 --- a/libs/port/c_949.c +++ b/libs/port/c_949.c @@ -4234,7 +4234,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x00 }; -static const unsigned short uni2cp_low[37466] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/libs/port/c_950.c b/libs/port/c_950.c index 74eddfc1750..a6ccd05bd73 100644 --- a/libs/port/c_950.c +++ b/libs/port/c_950.c @@ -4234,7 +4234,7 @@ static const unsigned char cp2uni_leadbytes[256] = 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x00 }; -static const unsigned short uni2cp_low[31731] = +static const unsigned short uni2cp_low[] = { /* 0x0000 .. 0x00ff */ 0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007, diff --git a/tools/make_unicode b/tools/make_unicode index dbf640abe7c..bbd26e4fdc5 100755 --- a/tools/make_unicode +++ b/tools/make_unicode @@ -1031,8 +1031,7 @@ sub dump_uni2cp_table($$) # output all the subtables into a single array - printf OUTPUT "static const unsigned %s uni2cp_low[%d] =\n{\n", - $width == 8 ? "char" : "short", ($index + 1) * 256 - $removed; + printf OUTPUT "static const unsigned %s uni2cp_low[] =\n{\n", $width == 8 ? "char" : "short"; my $format = $width == 8 ? "0x%02x" : "0x%04x"; for (my $i = $index = 0; $i < 257; $i++)