diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2020-10-13 03:22:55 -0400 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-10-13 14:17:27 +0200 |
commit | a32687798122fd9d4263caaf3ea844462bd69f50 (patch) | |
tree | 28004468e18c63fa207465ceb8763dc4e4506774 /lib/optiontable.pl | |
parent | 0a99281c214794cf013297075b49e29bde1de566 (diff) | |
download | curl-a32687798122fd9d4263caaf3ea844462bd69f50.tar.gz |
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
Diffstat (limited to 'lib/optiontable.pl')
0 files changed, 0 insertions, 0 deletions