https://bugs.winehq.org/show_bug.cgi?id=52923
Bug ID: 52923 Summary: wininet:http Querying the security certificate fails on Windows with a UTF-8 codepage Product: Wine Version: unspecified Hardware: x86-64 OS: Windows Status: NEW Severity: normal Priority: P2 Component: wininet Assignee: wine-bugs@winehq.org Reporter: fgouget@codeweavers.com
Querying the security certificate fails in wininet:http on Windows with a UTF-8 codepage (w10pro64-hi-u8). The failures fall into three categories:
http.c:6887: Test failed: expected secure flag to be set http.c:6894: Test failed: InternetQueryOption failed: 12019 http.c:6904: Test failed: InternetQueryOption failed: 12016 http.c:6910: Test failed: InternetQueryOption failed: 12016
In test_secure_connection() -> These happen are caused by urlmon:url as described in bug 51227 though the 12019 error (ERROR_INTERNET_INCORRECT_HANDLE_STATE) may be UTF-8-specific.
http.c:6933: Test failed: InternetQueryOption failed: 12016 http.c:6938: Test failed: InternetQueryOption failed: 12016 http.c:6941: Test failed: expected same string
In test_secure_connection() -> Bug 51227 says these are caused by urlmon:url but they also happen when wininet:http is run all alone on w10pro64-hi-u8 (and not on w10pro64-hi).
http.c:6653: Test failed: InternetQueryOption failed: 12016 http.c:6654: Test failed: unexpected size: 0 http.c:6660: Test failed: InternetQueryOption failed: 12016 http.c:6661: Test failed: unexpected size: 0 http.c:6667: Test failed: InternetQueryOption failed: 12016
In test_security_flags() -> These are totally specific to UTF-8.
https://test.winehq.org/data/patterns.html#wininet:http
Both the Unicode and ANSI versions of InternetQueryOption() fail but only when given INTERNET_OPTION_SECURITY_CERTIFICATE, not with INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT.
And this is really specific to the UTF-8 codepage: there is no failure when wininet:http is run on its own in the regular Hindi locale.
https://bugs.winehq.org/show_bug.cgi?id=52923
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source, testcase
https://bugs.winehq.org/show_bug.cgi?id=52923
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|wininet:http Querying the |wininet:http Querying the |security certificate fails |security certificate fails |on Windows with a UTF-8 |on Windows with Hindi + |codepage |UTF-8
--- Comment #1 from François Gouget fgouget@codeweavers.com --- These new failures are actually specific to the Hindi + UTF-8 combination (w10pro64-hi-u8) because they don't happen in the English + UTF-8 case (w10pro64-en-AE-u8).
https://bugs.winehq.org/show_bug.cgi?id=52923
--- Comment #2 from François Gouget fgouget@codeweavers.com --- Where: 12016 == ERROR_INTERNET_INVALID_OPERATION 12019 == ERROR_INTERNET_INCORRECT_HANDLE_STATE