]> git.ipfire.org Git - thirdparty/xz.git/commit
Windows: Use UTF-8 locale when active code page is UTF-8
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 17 Dec 2024 12:59:37 +0000 (14:59 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 18 Dec 2024 15:09:30 +0000 (17:09 +0200)
commit0d0b574cc45045d6150d397776340c068df59e2a
tree564065e8006188c67a74f13a2afe134d6f5d7f4f
parent20dfca8171dad4c64785ac61d5b68972c444877b
Windows: Use UTF-8 locale when active code page is UTF-8

XZ Utils 5.6.3 set the active code page to UTF-8 to fix CVE-2024-47611.
This wasn't paired with UCRT-specific setlocale(LC_ALL, ".UTF8"), thus
non-ASCII characters from translations became mojibake.

Fixes: 46ee0061629fb075d61d83839e14dd193337af59
src/common/tuklib_gettext.h