conda-forge / curl-feedstock

A conda-smithy repository for curl.
BSD 3-Clause "New" or "Revised" License
3 stars 44 forks source link

Unicode --data not working #131

Open jay opened 1 year ago

jay commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

Originally reported by @squromiv in curl/curl#12231:

Unicode --data doesn't work:

curl -v --data спасти http://httpbin.org/post

the server is sent invalid data and replies with fffd (unknown) (������)

\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd

what curl should do is send the unicode --data and then the server will reply with the same characters:

\u0441\u043f\u0430\u0441\u0442\u0438

The reporter is using "C:\ProgramData\Anaconda3\Library\bin\curl.exe" 8.1.1 with "Unicode" in the features list.

I was able to reproduce with the curl.exe from curl-8.1.1-h68f0423_0 (and dependencies libcurl-8.1.1-h68f0423_0, libssh2-1.10.0-h680486a_3, openssl-1.1.1w-hcfcfb64_0, libzlib-1.2.13-hcfcfb64_5).

This is either a bug in curl or in your build process, I don't know which. In bld.bat ENABLE_UNICODE=yes which is the correct way to enable Unicode. I can see there are multiple build methods. It would be helpful to know exactly how the distributed version of curl.exe is built.

Installed packages

n/a not installed

Environment info

n/a not installed
ocefpaf commented 1 year ago

@isuruf do you have any idea on what we may do here? I'm kind of lost :-/