diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2021-01-24 18:22:05 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2021-02-09 02:47:05 -0500 |
commit | b48db908e08cf6dca67ef12f29738e7188702299 (patch) | |
tree | f168f23e517cba837b87b64b1c73bf16204c8643 /tests/data/test253 | |
parent | 1269c80af1dc45c3cee1dbbc76270ac7c7d6f1c3 (diff) | |
download | curl-b48db908e08cf6dca67ef12f29738e7188702299.tar.gz |
curl_multibyte: fall back to local code page stat/access on Windows
If libcurl is built with Unicode support for Windows then it is assumed
the filename string is Unicode in UTF-8 encoding and it is converted to
UTF-16 to be passed to the wide character version of the respective
function (eg wstat). However the filename string may actually be in the
local encoding so, even if it successfully converted to UTF-16, if it
could not be stat/accessed then try again using the local code page
version of the function (eg wstat fails try stat).
We already do this with fopen (ie wfopen fails try fopen), so I think it
makes sense to extend it to stat and access functions.
Closes https://github.com/curl/curl/pull/6514
Diffstat (limited to 'tests/data/test253')
0 files changed, 0 insertions, 0 deletions