A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/fmtlib/fmt/issues/4094 below:

Wide char to UTF-8 conversion drops surrogate pairs · Issue #4094 · fmtlib/fmt · GitHub

The convert function,

fmt/include/fmt/format.h

Line 1409 in 6e462b8

static auto convert(Buffer& buf, basic_string_view<WChar> s,

decodes the surrogate pair,

fmt/include/fmt/format.h

Line 1422 in 6e462b8

c = (c << 10) + static_cast<uint32_t>(*p) - 0x35fdc00;

but does not write the resulting unicode character to the output buffer.

Walked into this when printing a std::filesystem::path on Windows, that uses smiley characters, such as 😀. The character is simply dropped.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4