You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== Start of file stderr165
curl: (3) Failed to convert www.[EF][BF][BD][EF][BF][BD][EF][BF][BD].se to ACE;
curl: (3) Failed to convert www.gro[EF][BF][BD]e.de to ACE;
=== End of file stderr165
which doesn't happen when run in gdb, which is a native MSYS program, via ./runtests.pl -g (and the original URLs are printed correctly then).
So it seems like MSYS2 does some UTF-8-to-something-else conversion for Windows compatibility.
I expected the following
The tests to either succeed or not be executed (but preferably succeed as the MSYS2 terminal itself is UTF-8 capable).
- use wmain instead of main when _UNICODE is defined [0]
- define argv_item_t as wchar_t * in this case
- use the curl_multibyte gear to convert the command-line arguments to
UTF-8
This makes it possible to pass parameters with characters outside of
the current locale on Windows, which is required for some tests, e.g.
the IDN tests. Out of the box, this currently only works with the
Visual Studio project files, which default to Unicode.
[0] https://devblogs.microsoft.com/oldnewthing/?p=40643
Ref: curl#3747
Closes
The problem is that curl receives its command-line arguments with ANSI encoding even though the perl precheck reports a UTF-8 locale. Using Windows's native UTF-16 for them as done in #3784 fixes this issue.
Only test 165 is then still failing because of ß handling in IDNA 2003 vs. 2008.
I did this
See for example Marc's
6DY-SHZ-5KMWP2----
autobuilds, like this one:https://curl.haxx.se/dev/log.cgi?id=20190407081751-30470
Note this:
which doesn't happen when run in gdb, which is a native MSYS program, via
./runtests.pl -g
(and the original URLs are printed correctly then).So it seems like MSYS2 does some UTF-8-to-something-else conversion for Windows compatibility.
I expected the following
The tests to either succeed or not be executed (but preferably succeed as the MSYS2 terminal itself is UTF-8 capable).
curl/libcurl version
post-7.64.1 master 2f44e94
operating system
MSYS2 with MinGW-w64 on Windows 10
The text was updated successfully, but these errors were encountered: