[Bug 52936] winhttp:url assumes 0xfb00 cannot be converted to the ANSI codepage, fails with UTF-8 codepage

WineHQ Bugzilla wine-bugs at winehq.org
Sat Apr 30 05:22:18 CDT 2022


https://bugs.winehq.org/show_bug.cgi?id=52936

--- Comment #1 from Hans Leidekker <hans at meelstraat.net> ---
(In reply to François Gouget from comment #0)
> winhttp:url assumes 0xfb00 cannot be converted to the ANSI codepage and thus
> fails fails on Windows with the UTF-8 codepage:
> 
> url.c:306: Test failed: expected failure
> url.c:307: Test failed: got 0
> url.c:346: Test failed: expected failure
> url.c:347: Test failed: got 0
> 
> https://test.winehq.org/data/patterns.html#winhttp:url
> 
> 
> These two pairs of failures happen when calling WinHttpCreateUrl() on the
> following URLs respectively:
> 
>   39 static WCHAR escape3[]  = {'?','t','e','x','t','=',0xfb00,0};
>   40 static WCHAR escape4[]  = {'/','t','e','x','t','=',0xfb00,0};
> 
> So maybe these tests should be skipped when running in a UTF-8 locale since
> it's supposed to be able to handle any UTF-16 codepoint.

Is Microsoft planning to switch the codepage default to UTF-8 across the board?

The new behavior makes sense, but I think I'd rather wait until this feature
comes out of beta, fix Wine and then mark the old behavior as broken.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list