]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Add a new Windows-only public API, archive_read_open_filenames_w (#2016)
authorDustin L. Howett <dustin@howett.net>
Tue, 21 Nov 2023 20:26:46 +0000 (14:26 -0600)
committerGitHub <noreply@github.com>
Tue, 21 Nov 2023 20:26:46 +0000 (12:26 -0800)
commit872a9dfd3be29451d7662c17430c35c248b258c9
treea2789dc329449f1deda90b1c3f6540bf8954c0c7
parent7dde502899d67e03df85266d90bae46871f998cf
Add a new Windows-only public API, archive_read_open_filenames_w (#2016)

There is a discrepancy between the w and non-w filename APIs, wherein a
consumer of libarchive can open a multi-volume set with names in the
current locale (on Windows) but not with UTF-16 names.

This patch addresses that issue.

archive_read_open_filename_w delegates its work to
archive_read_open_filenames_w.

Fixes #1728

Tested passing on Windows. In the meantime, I will also test on Linux.
I am hoping that the build agents can help me determine FreeBSD and
macOS coverage.
libarchive/archive.h
libarchive/archive_read_open_filename.c
libarchive/test/test_read_format_rar.c