Thanks to visit codestin.com
Credit goes to github.com

Skip to content

When using the -o option, some characters changed #11461

@kakogawa

Description

@kakogawa

I did this

cmd
"curl.exe" -o "ポ.html" "https://www.google.com/"

I expected the following

I expect to run this command and save "ポ.html"
But what was actually saved was "ダ.html"
("ポ" reads po. "ダ" reads da in japanese)
When specifying a path with the -o option, if "ポ" is included, it seems to change to a different character for some reason.
I have confirmed that this bug occurs in version 8.1.2_5, but not in version 8.0.1.

curl/libcurl version

curl 8.1.2 (x86_64-w64-mingw32) libcurl/8.1.2 OpenSSL/3.1.0 (Schannel) zlib/1.2.13 brotli/1.0.9 zstd/1.5.5 WinIDN libssh2/1.11.0 nghttp2/1.55.1 ngtcp2/0.15.0 nghttp3/0.11.0 libgsasl/2.2.0
Release-Date: 2023-05-30
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli gsasl HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL SSPI threadsafe UnixSockets zstd

operating system

Windows10 64bit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions