aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/c_global/cstdint
diff options
context:
space:
mode:
authorPeter Damianov <peter0x44@disroot.org>2025-09-19 20:02:37 +0100
committerJonathan Yong <10walls@gmail.com>2025-09-28 01:32:43 +0000
commitbd352bd5923e2c259d7c80c69c11b1c9407f280d (patch)
tree35724b5a471d7403471dc86a1480b9af7f971df5 /libstdc++-v3/include/c_global/cstdint
parent214372031a621fa4d20e44cb9d5db062578543d8 (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
diagnostics: Fix mojibake from displaying UTF-8 on Windows consolesHEADtrunkmaster
UTF-8 characters in diagnostic output (such as the warning emoji ⚠️ used by fanalyzer) display as mojibake on Windows unless the utf8 code page is being used This patch adds UTF-8 to UTF-16 conversion when outputting to a console on Windows. gcc/ChangeLog: * pretty-print.cc (decode_utf8_char): Move forward declaration. (mingw_utf8_str_to_utf16_str): New function to convert UTF-8 to UTF-16. (is_console_handle): New function to detect Windows console handles. (write_all): Add UTF-8 to UTF-16 conversion for console output, falling back to WriteFile for ASCII strings and regular files. Signed-off-by: Peter Damianov <peter0x44@disroot.org> Signed-off-by: Jonathan Yong <10walls@gmail.com>
Diffstat (limited to 'libstdc++-v3/include/c_global/cstdint')
0 files changed, 0 insertions, 0 deletions