Go to file
Jay Satiro af3f4e419b tool_cb_wrt: fix invalid unicode for windows console
- Suppress an incomplete UTF-8 sequence at the end of the buffer.

- Attempt to reconstruct incomplete UTF-8 sequence from prior call(s)
  in current call.

Prior to this change, in Windows console UTF-8 sequences split between
two or more calls to the write callback would cause invalid "replacement
characters" U+FFFD to be printed instead of the actual Unicode
character. This is because in Windows only UTF-16 encoded characters are
printed to the console, therefore we convert the UTF-8 contents to
UTF-16, which cannot be done with partial UTF-8 sequences.

Reported-by: Maksim Arhipov

Fixes https://github.com/curl/curl/issues/9841
Closes https://github.com/curl/curl/pull/10890
2023-08-01 03:28:12 -04:00
.circleci CI: enable parallel make in more builds 2023-06-24 14:40:39 -07:00
.github wolfssl: support loading system CA certificates 2023-07-31 08:27:50 +02:00
.reuse mlc_config.json: remove this linkcheck CI job config file 2023-05-15 13:23:54 +02:00
CMake nss: remove support for this TLS library 2023-07-29 23:44:28 +02:00
docs curl: make %output{} in -w specify a file to write to 2023-07-31 23:10:59 +02:00
include RELEASE-NOTES: synced 2023-07-27 23:58:57 +02:00
lib sectransp: prevent CFRelease() of NULL 2023-08-01 08:17:26 +02:00
LICENSES copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
m4 nss: remove support for this TLS library 2023-07-29 23:44:28 +02:00
packages nss: remove support for this TLS library 2023-07-29 23:44:28 +02:00
plan9 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
projects tool: add "variable" support 2023-07-31 11:51:34 +02:00
scripts checksrc: quote the file name to work with "funny" letters 2023-07-13 14:25:18 +02:00
src tool_cb_wrt: fix invalid unicode for windows console 2023-08-01 03:28:12 -04:00
tests urlapi: make sure zoneid is also duplicated in curl_url_dup 2023-08-01 08:00:28 +02:00
winbuild tool: add "variable" support 2023-07-31 11:51:34 +02:00
.azure-pipelines.yml CI: don't run CI jobs if only another CI was changed 2023-04-24 20:46:09 -07:00
.cirrus.yml CI: enable parallel make in more builds 2023-06-24 14:40:39 -07:00
.dcignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.dir-locals.el copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.git-blame-ignore-revs copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitattributes copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
.mailmap mailmap: add Derzsi Dániel 2023-07-31 08:29:16 +02:00
acinclude.m4 timeval: use CLOCK_MONOTONIC_RAW if available 2023-06-13 00:02:32 +02:00
appveyor.yml CI: make Appveyor job names unique 2023-06-28 01:07:21 -07:00
buildconf copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
buildconf.bat copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CHANGES
CMakeLists.txt configure, cmake, lib: more form api deprecation 2023-07-31 08:31:38 +02:00
configure.ac configure, cmake, lib: more form api deprecation 2023-07-31 08:31:38 +02:00
COPYING copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-config.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
GIT-INFO GIT-INFO: add --with-openssl 2023-05-14 23:22:23 +02:00
libcurl.pc.in copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
MacOSX-Framework copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am nss: delete more NSS references 2023-07-30 21:55:29 +00:00
Makefile.dist copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
maketgz copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
README
README.md README.md: updated link to opencollective 2023-06-02 11:29:15 +02:00
RELEASE-NOTES RELEASE-NOTES: synced 2023-07-31 11:58:26 +02:00
SECURITY.md copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how.

You can find answers to the most frequent questions we get in the FAQ document.

Study the COPYING file for distribution terms.

Contact

If you have problems, questions, ideas or suggestions, please contact us by posting to a suitable mailing list.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Git

To download the latest source from the Git server, do this:

git clone https://github.com/curl/curl.git

(you will get a directory named curl created, filled with the source code)

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers! 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.