[PATCH] kernelbase: Use wide-char string literals.
Dmitry Timoshkov
dmitry at baikal.ru
Thu Nov 26 01:46:31 CST 2020
Michael Stefaniuc <mstefani at winehq.org> wrote:
> /* Unicode expanded ligatures */
> static const WCHAR ligatures[][5] =
> {
> - { 0x00c6, 'A','E',0 },
> - { 0x00de, 'T','H',0 },
> - { 0x00df, 's','s',0 },
> - { 0x00e6, 'a','e',0 },
> - { 0x00fe, 't','h',0 },
> - { 0x0132, 'I','J',0 },
> - { 0x0133, 'i','j',0 },
> - { 0x0152, 'O','E',0 },
> - { 0x0153, 'o','e',0 },
> - { 0x01c4, 'D',0x017d,0 },
> - { 0x01c5, 'D',0x017e,0 },
> - { 0x01c6, 'd',0x017e,0 },
> - { 0x01c7, 'L','J',0 },
> - { 0x01c8, 'L','j',0 },
> - { 0x01c9, 'l','j',0 },
> - { 0x01ca, 'N','J',0 },
> - { 0x01cb, 'N','j',0 },
> - { 0x01cc, 'n','j',0 },
> - { 0x01e2, 0x0100,0x0112,0 },
> - { 0x01e3, 0x0101,0x0113,0 },
> - { 0x01f1, 'D','Z',0 },
> - { 0x01f2, 'D','z',0 },
> - { 0x01f3, 'd','z',0 },
> - { 0x01fc, 0x00c1,0x00c9,0 },
> - { 0x01fd, 0x00e1,0x00e9,0 },
> - { 0x05f0, 0x05d5,0x05d5,0 },
> - { 0x05f1, 0x05d5,0x05d9,0 },
> - { 0x05f2, 0x05d9,0x05d9,0 },
> - { 0xfb00, 'f','f',0 },
> - { 0xfb01, 'f','i',0 },
> - { 0xfb02, 'f','l',0 },
> - { 0xfb03, 'f','f','i',0 },
> - { 0xfb04, 'f','f','l',0 },
> - { 0xfb05, 0x017f,'t',0 },
> - { 0xfb06, 's','t',0 },
> + L"\x00c6" "AE",
> + L"\x00deTH",
> + L"\x00dfss",
> + L"\x00e6" "ae",
> + L"\x00feth",
> + L"\x0132IJ",
> + L"\x0133ij",
> + L"\x0152OE",
> + L"\x0153oe",
> + L"\x01c4" "D\x017d",
> + L"\x01c5" "D\x017e",
> + L"\x01c6" "d\x017e",
> + L"\x01c7LJ",
> + L"\x01c8Lj",
> + L"\x01c9lj",
> + L"\x01caNJ",
> + L"\x01cbNj",
> + L"\x01ccnj",
> + L"\x01e2\x0100\x0112",
> + L"\x01e3\x0101\x0113",
> + L"\x01f1" "DZ",
> + L"\x01f2" "Dz",
> + L"\x01f3" "dz",
> + L"\x01fc\x00c1\x00c9",
> + L"\x01fd\x00e1\x00e9",
> + L"\x05f0\x05d5\x05d5",
> + L"\x05f1\x05d5\x05d9",
> + L"\x05f2\x05d9\x05d9",
> + L"\xfb00" "ff",
> + L"\xfb01" "fi",
> + L"\xfb02" "fl",
> + L"\xfb03" "ffi",
> + L"\xfb04" "ffl",
> + L"\xfb05\x017ft",
> + L"\xfb06st",
> };
This change defeats the purpose of the table, and makes it unreadble.
--
Dmitry.
More information about the wine-devel
mailing list