]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Don't call GetOEMCP() in Universal Windows Platform builds
authorSteve Lhomme <robux4@ycbcr.xyz>
Wed, 24 May 2023 13:23:14 +0000 (15:23 +0200)
committerMartin Matuška <martin@matuska.de>
Thu, 13 Jul 2023 22:30:12 +0000 (00:30 +0200)
commit35b79b01cbb98262dc06c23cfaa180e6735b75b1
treefe71525ebac2ad81ac06d7f25c072e9c23bec70c
parentf49793bb9e91261891853af14a4d494f5f00f7a7
Don't call GetOEMCP() in Universal Windows Platform builds

It's not available [1] [2]. However we can use the intermediate CP_OEMCP
value. It can be used to compare charsets in create_sconv_object().
It won't work with comparing charsets in archive_string_default_conversion_for_read()
and archive_string_default_conversion_for_write(). current_codepage being
an actual CodePage value.

[1] https://learn.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-api-ms-win-core-localization-l1-2-0dll
[2] https://learn.microsoft.com/en-us/windows/win32/api/winnls/nf-winnls-getoemcp#requirements
libarchive/archive_string.c