curl/lib
Jay Satiro a326877981
strerror: Revert to local codepage for Windows error string
- Change get_winapi_error() to return the error string in the local
  codepage instead of UTF-8 encoding.

Two weeks ago bed5f84 fixed get_winapi_error() to work on xbox, but it
also changed the error string's encoding from local codepage to UTF-8.

We return the local codepage version of the error string because if it
is output to the user's terminal it will likely be with functions which
expect the local codepage (eg fprintf, failf, infof).

This is essentially a partial revert of bed5f84. The support for xbox
remains but the error string is reverted back to local codepage.

Ref: https://github.com/curl/curl/pull/6005

Reviewed-by: Marcel Raad
Closes #6065
2020-10-13 14:17:27 +02:00
..
vauth ntlm: free target_info before (re-)malloc 2020-07-26 23:48:36 +02:00
vquic ngtcp2: adapt to new NGTCP2_PROTO_VER_MAX define 2020-09-25 08:59:43 +02:00
vssh libssh2: handle the SSH protocols done over HTTPS proxy 2020-09-29 07:50:07 +02:00
vtls windows: fix comparison of mismatched types warning 2020-10-12 10:18:53 +00:00
.gitattributes
.gitignore
altsvc.c altsvc: clone setting in curl_easy_duphandle 2020-09-06 09:54:54 +02:00
altsvc.h altsvc: clone setting in curl_easy_duphandle 2020-09-06 09:54:54 +02:00
amigaos.c
amigaos.h
arpa_telnet.h
asyn-ares.c symbian: drop support 2020-09-22 15:14:12 +02:00
asyn-thread.c
asyn.h asyn.h: remove the Curl_resolver_getsock define 2020-07-12 18:06:50 +02:00
base64.c base64: also build for pop3 and imap 2020-09-10 08:50:04 +02:00
checksrc.pl checksrc: detect // comments on column 0 2020-10-07 10:14:50 +02:00
CMakeLists.txt krb5: merged security.c and krb specific FTP functions in here 2020-09-21 23:31:39 +02:00
config-amigaos.h
config-dos.h
config-mac.h
config-os400.h
config-plan9.h
config-riscos.h
config-tpf.h
config-vxworks.h
config-win32.h windows: disable Unix Sockets for old mingw 2020-08-03 14:31:49 +00:00
config-win32ce.h
conncache.c hash: make it 'struct Curl_hash' 2020-09-02 22:41:58 +02:00
conncache.h hash: make it 'struct Curl_hash' 2020-09-02 22:41:58 +02:00
connect.c symbian: drop support 2020-09-22 15:14:12 +02:00
connect.h
content_encoding.c symbian: drop support 2020-09-22 15:14:12 +02:00
content_encoding.h
cookie.c terminology: call them null-terminated strings 2020-06-28 00:31:24 +02:00
cookie.h
curl_addrinfo.c
curl_addrinfo.h
curl_base64.h
curl_config.h.cmake mqtt: enable by default 2020-08-31 09:45:09 +02:00
curl_ctype.c
curl_ctype.h
curl_des.c
curl_des.h
curl_endian.c
curl_endian.h
curl_fnmatch.c
curl_fnmatch.h
curl_get_line.c curl_get_line: build only if cookies or alt-svc are enabled 2020-08-26 22:56:26 +02:00
curl_get_line.h
curl_gethostname.c lib: make Curl_gethostname accept a const pointer 2020-08-27 22:52:22 +02:00
curl_gethostname.h lib: make Curl_gethostname accept a const pointer 2020-08-27 22:52:22 +02:00
curl_gssapi.c
curl_gssapi.h
curl_hmac.h
curl_krb5.h curl_krb5.h: rename from krb5.h 2020-09-22 13:46:22 +02:00
curl_ldap.h
curl_md4.h
curl_md5.h
curl_memory.h
curl_memrchr.c
curl_memrchr.h
curl_multibyte.c multibyte: Fixed access-> waccess to file for Windows Plarform 2020-06-21 19:31:39 +02:00
curl_multibyte.h
curl_ntlm_core.c ntlm: fix condition for curl_ntlm_core usage 2020-08-29 10:08:32 +02:00
curl_ntlm_core.h ntlm: fix condition for curl_ntlm_core usage 2020-08-29 10:08:32 +02:00
curl_ntlm_wb.c http: move header storage to Curl_easy from connectdata 2020-06-15 22:56:25 +02:00
curl_ntlm_wb.h
curl_path.c src: Consistently spell whitespace without whitespace 2020-09-30 21:10:14 +02:00
curl_path.h
curl_printf.h dynbuf: make *addf() not require extra mallocs 2020-09-23 08:54:42 +02:00
curl_range.c
curl_range.h
curl_rtmp.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
curl_rtmp.h
curl_sasl.c
curl_sasl.h
curl_setup_once.h
curl_setup.h symbian: drop support 2020-09-22 15:14:12 +02:00
curl_sha256.h
curl_sspi.c win32: Add Curl_verify_windows_version() to curlx 2020-08-02 17:58:44 +02:00
curl_sspi.h
curl_threads.c curl_threads: make it 'struct Curl_actual_call' 2020-09-02 22:41:59 +02:00
curl_threads.h
curlx.h win32: Add Curl_verify_windows_version() to curlx 2020-08-02 17:58:44 +02:00
dict.c sendf: move Curl_sendf to dict.c and make it static 2020-09-28 17:05:53 +02:00
dict.h
doh.c tls: add CURLOPT_SSL_EC_CURVES and --curves 2020-08-30 17:24:04 +02:00
doh.h
dotdot.c terminology: call them null-terminated strings 2020-06-28 00:31:24 +02:00
dotdot.h
dynbuf.c dynbuf: add Curl_dyn_vaddf 2020-09-23 15:13:46 +02:00
dynbuf.h imap: make imap_send use dynbuf for the send buffer management 2020-09-25 08:35:01 +02:00
easy.c pause: only trigger a reread if the unpause sticks 2020-09-25 15:18:10 +02:00
easygetopt.c easygetopt: pass a valid enum to avoid compiler warning 2020-09-05 14:44:11 +02:00
easyif.h
easyoptions.c lib: fix -Wassign-enum warnings 2020-09-08 13:53:02 +02:00
easyoptions.h easyoptions: provide debug function when DEBUGBUILD 2020-08-28 23:35:12 +02:00
escape.c escape: make the URL decode able to reject only %00 bytes 2020-06-25 09:57:18 +02:00
escape.h escape: make the URL decode able to reject only %00 bytes 2020-06-25 09:57:18 +02:00
file.c symbian: drop support 2020-09-22 15:14:12 +02:00
file.h
fileinfo.c
fileinfo.h llist: make it "struct Curl_llist" 2020-09-02 22:41:58 +02:00
firefox-db2pem.sh
formdata.c terminology: call them null-terminated strings 2020-06-28 00:31:24 +02:00
formdata.h
ftp.c ftp: make a 552 response return CURLE_REMOTE_DISK_FULL 2020-09-26 13:37:15 +02:00
ftp.h krb5: merged security.c and krb specific FTP functions in here 2020-09-21 23:31:39 +02:00
ftplistparser.c src: Consistently spell whitespace without whitespace 2020-09-30 21:10:14 +02:00
ftplistparser.h
getenv.c
getinfo.c CURLE_PROXY: new error code 2020-08-24 08:41:48 +02:00
getinfo.h
gopher.c sendf: move Curl_sendf to dict.c and make it static 2020-09-28 17:05:53 +02:00
gopher.h
hash.c hash: make it 'struct Curl_hash' 2020-09-02 22:41:58 +02:00
hash.h hash: make it 'struct Curl_hash' 2020-09-02 22:41:58 +02:00
hmac.c
hostasyn.c
hostcheck.c
hostcheck.h
hostip4.c
hostip6.c
hostip.c hash: make it 'struct Curl_hash' 2020-09-02 22:41:58 +02:00
hostip.h hash: make it 'struct Curl_hash' 2020-09-02 22:41:58 +02:00
hostsyn.c
http2.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
http2.h
http_chunks.c
http_chunks.h
http_digest.c http: move header storage to Curl_easy from connectdata 2020-06-15 22:56:25 +02:00
http_digest.h http: move header storage to Curl_easy from connectdata 2020-06-15 22:56:25 +02:00
http_negotiate.c http: move header storage to Curl_easy from connectdata 2020-06-15 22:56:25 +02:00
http_negotiate.h
http_ntlm.c http: move header storage to Curl_easy from connectdata 2020-06-15 22:56:25 +02:00
http_ntlm.h
http_proxy.c http_proxy: do not count proxy headers in the header bytecount 2020-09-22 10:54:34 +02:00
http_proxy.h
http.c src: Consistently spell whitespace without whitespace 2020-09-30 21:10:14 +02:00
http.h h2: repair trailer handling 2020-08-03 23:43:24 +02:00
idn_win32.c
if2ip.c Curl_inet_ntop: always check the return code 2020-06-24 16:04:54 +02:00
if2ip.h
imap.c imap: make imap_send use dynbuf for the send buffer management 2020-09-25 08:35:01 +02:00
imap.h imap: make imap_send use dynbuf for the send buffer management 2020-09-25 08:35:01 +02:00
inet_ntop.c
inet_ntop.h
inet_pton.c checksrc: warn on space after exclamation mark 2020-10-02 16:35:53 +02:00
inet_pton.h
krb5.c curl_krb5.h: rename from krb5.h 2020-09-22 13:46:22 +02:00
ldap.c ldap: reduce the amount of #ifdefs needed 2020-10-03 22:49:39 +02:00
libcurl.plist
libcurl.rc
libcurl.vers.in
llist.c llist: make it "struct Curl_llist" 2020-09-02 22:41:58 +02:00
llist.h llist: make it "struct Curl_llist" 2020-09-02 22:41:58 +02:00
Makefile.am symbian: drop support 2020-09-22 15:14:12 +02:00
makefile.amiga
makefile.dj
Makefile.inc curl_krb5.h: rename from krb5.h 2020-09-22 13:46:22 +02:00
Makefile.m32 Makefile.m32: add ability to override zstd libs [ci skip] 2020-08-22 21:08:28 +00:00
Makefile.netware
Makefile.vxworks
md4.c md(4|5): don't use deprecated macOS functions 2020-07-19 10:34:52 +02:00
md5.c md(4|5): don't use deprecated macOS functions 2020-07-19 10:34:52 +02:00
memdebug.c memdebug: remove 9 year old unused debug function 2020-09-28 22:15:21 +02:00
memdebug.h curl: improve the existing file check with -J 2020-07-28 23:28:40 +02:00
mime.c terminology: call them null-terminated strings 2020-06-28 00:31:24 +02:00
mime.h
mk-ca-bundle.pl
mk-ca-bundle.vbs
mprintf.c checksrc: warn on space after exclamation mark 2020-10-02 16:35:53 +02:00
mqtt.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
mqtt.h mqtt: enable by default 2020-08-31 09:45:09 +02:00
multi.c multi: align WinSock mask variables in Curl_multi_wait 2020-09-17 07:41:14 +02:00
multihandle.h hash: make it 'struct Curl_hash' 2020-09-02 22:41:58 +02:00
multiif.h url: make sure pushed streams get an allocated download buffer 2020-06-23 15:13:27 +02:00
netrc.c
netrc.h
non-ascii.c
non-ascii.h
nonblock.c
nonblock.h
nwlib.c
nwos.c
openldap.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
optiontable.pl lib: fix -Wassign-enum warnings 2020-09-08 13:53:02 +02:00
parsedate.c parsedate: tune the date to epoch conversion 2020-09-21 16:46:41 +02:00
parsedate.h
pingpong.c pingpong: use a dynbuf for the *_pp_sendf() function 2020-09-23 15:14:09 +02:00
pingpong.h pingpong: use a dynbuf for the *_pp_sendf() function 2020-09-23 15:14:09 +02:00
pop3.c pingpong: use a dynbuf for the *_pp_sendf() function 2020-09-23 15:14:09 +02:00
pop3.h
progress.c Curl_pgrsTime - return new time to avoid timeout integer overflow 2020-08-28 14:16:41 +02:00
progress.h Curl_pgrsTime - return new time to avoid timeout integer overflow 2020-08-28 14:16:41 +02:00
psl.c
psl.h
quic.h connect: improve happy eyeballs handling 2020-06-18 00:20:42 +02:00
rand.c
rand.h
rename.c WIN32: stop forcing narrow-character API 2020-07-27 10:42:38 +02:00
rename.h
rtsp.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
rtsp.h
select.c select: align poll emulation to return all relevant events 2020-09-02 16:26:20 +02:00
select.h select.h: make socket validation macros test for INVALID_SOCKET 2020-08-25 11:17:06 +02:00
sendf.c sendf: move Curl_sendf to dict.c and make it static 2020-09-28 17:05:53 +02:00
sendf.h sendf: move Curl_sendf to dict.c and make it static 2020-09-28 17:05:53 +02:00
setopt.c setopt: return CURLE_BAD_FUNCTION_ARGUMENT on bad argument 2020-09-22 09:04:13 +02:00
setopt.h
setup-os400.h
setup-vms.h
setup-win32.h win32: drop support for WinSock version 1, require version 2 2020-09-02 16:30:39 +02:00
sha256.c
share.c vtls: make it 'struct Curl_ssl_session' 2020-09-02 22:41:59 +02:00
share.h vtls: make it 'struct Curl_ssl_session' 2020-09-02 22:41:59 +02:00
sigpipe.h
slist.c
slist.h
smb.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
smb.h ntlm: fix condition for curl_ntlm_core usage 2020-08-29 10:08:32 +02:00
smtp.c pingpong: use a dynbuf for the *_pp_sendf() function 2020-09-23 15:14:09 +02:00
smtp.h
sockaddr.h
socketpair.c socketpair: allow CURL_DISABLE_SOCKETPAIR 2020-08-26 22:58:21 +02:00
socketpair.h
socks_gssapi.c
socks_sspi.c
socks.c CURLE_PROXY: new error code 2020-08-24 08:41:48 +02:00
socks.h CURLE_PROXY: new error code 2020-08-24 08:41:48 +02:00
speedcheck.c
speedcheck.h
splay.c
splay.h
strcase.c
strcase.h
strdup.c strdup: remove the odd strlen check 2020-07-18 12:37:25 +02:00
strdup.h
strerror.c strerror: Revert to local codepage for Windows error string 2020-10-13 14:17:27 +02:00
strerror.h
strtok.c terminology: call them null-terminated strings 2020-06-28 00:31:24 +02:00
strtok.h
strtoofft.c
strtoofft.h
system_win32.c win32: drop support for WinSock version 1, require version 2 2020-09-02 16:30:39 +02:00
system_win32.h copyright: update/correct the year range on a few files 2020-08-14 10:20:27 +02:00
telnet.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
telnet.h
tftp.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
tftp.h
timeval.c
timeval.h
transfer.c transfer: move retrycount from connect struct to easy handle 2020-08-10 23:20:17 +02:00
transfer.h
url.c Curl_handler: add 'family' to each protocol 2020-09-21 23:30:16 +02:00
url.h
urlapi-int.h
urlapi.c urlapi: use more Curl_safefree 2020-09-17 09:44:36 +02:00
urldata.h ftp: separate FTPS from FTP over "HTTPS proxy" 2020-09-24 14:09:20 +02:00
version_win32.c win32: Add Curl_verify_windows_version() to curlx 2020-08-02 17:58:44 +02:00
version_win32.h copyright: update/correct the year range on a few files 2020-08-14 10:20:27 +02:00
version.c configure: don't say HTTPS-proxy is enabled when disabled! 2020-09-30 22:43:43 +02:00
warnless.c
warnless.h
wildcard.c
wildcard.h wildcard: strip "curl_" prefix from private symbols 2020-09-02 22:41:59 +02:00
x509asn1.c
x509asn1.h