"Mikolaj Zalewski" <mikolajz(a)google.com> writes:
> @@ -144,10 +144,18 @@ static int result_cp_949_mbctype[] = { 0
> static int result_cp_950_mbctype[] = { 0x0,65, 0x8,1, 0x18,26, 0x8,6, 0x28,26, 0x8,4,
> 0x0,2, 0x4,32, 0xc,94, 0,1 };
>
> +/* these characters may differ on different Windows versions */
> +static int fuzzy_cp_1252_mbctype[] = {142, 158, 170, 181, 186, -2};
> +static int fuzzy_cp_1250_mbctype[] = {131, 141, 142, 143, 157, 158, 159, 163, 165, 170, 175, 179, 181, 185, 186, 188, 190, 191, -2};
> +static int fuzzy_cp_932_mbctype[] = { -2 };
> +static int fuzzy_cp_936_mbctype[] = { -2 };
> +static int fuzzy_cp_949_mbctype[] = { -2 };
> +static int fuzzy_cp_950_mbctype[] = { -2 };
What this shows is that the exact values don't matter, and that apps
are very unlikely to depend on them. This also means that having
slightly different tables in Wine is not a problem, so I'd suggest to
not try to test every single char, but just pick a few that are the
same on all platforms.
--
Alexandre Julliard
julliard(a)winehq.org