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
Try to clone repo on Windows from not exists domain
Expected behavior
Error message is in UTF-8
Actual behavior
Error message is in bad encoding (probably UTF-16?)
failed to resolve address for not-exists-domain.test: Nen� zn�m ��dn� takov� hostitel. - this is how error message looks like after loosy transforming to UTF-8
I was in this area the other day (also using git2 with VS2017), and I noticed that if you try to make cc-rs compile git2 using UNICODE. If I did this, curl broke on some missing symbols that were wchar to utf8 related, IIRC.
I ended up only specifying the runtime flags to avoid the compilation warnings from link.exe, but I left the other stuff as is. What you're seeing here might be because CURL is compiled in ANSI mode somehow. If you set CLFAGS=/DUNICODE I believe you'll see CURL wont build anymore.
Reproduction steps
Try to clone repo on Windows from not exists domain
Expected behavior
Error message is in UTF-8
Actual behavior
Error message is in bad encoding (probably UTF-16?)
failed to resolve address for not-exists-domain.test: Nen� zn�m ��dn� takov� hostitel.
- this is how error message looks like after loosy transforming to UTF-8Version of libgit2 (release number or SHA1)
771dfd1dd1c27a4693dfdfea521c07e72f456b29
Operating system(s) tested
Windows 10 with Czech locale
First was reported as https://github.com/alexcrichton/git2-rs/issues/324. I think that the problem is, that for getting error message is called method
p_gai_strerror
libgit2/src/streams/socket.c
Line 102 in 88450c1
that is translated to
gai_strerror
method, but the encoding is not converted like for others errors in https://github.com/libgit2/libgit2/blob/master/src/win32/error.c.libgit2/src/posix.h
Line 172 in ec76cc4
The text was updated successfully, but these errors were encountered: