]> 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 17:22:00 +0000 (19:22 +0200)
commit4e7a48bf15138034f68ac1c73eb133dc04d7c8ad
treef198da8aed9bbef3cd3800181acdacbac25f5f45
parentd20e4115e1628bf4a43f6ab2d050a3a195b4ceb4
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
(cherry picked from commit 0d0b574cc45045d6150d397776340c068df59e2a)
src/common/tuklib_gettext.h