]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Complete support for UTF8 encoding conversion 1389/head
authorYichao Yu <yyc1992@gmail.com>
Sun, 31 May 2020 18:30:10 +0000 (14:30 -0400)
committerYichao Yu <yyc1992@gmail.com>
Sun, 31 May 2020 21:13:58 +0000 (17:13 -0400)
commitc30f279475e2afd39f380622d2b53b157eb746d8
treeab7dd0752c8d28292709aff9541e92fa97197133
parent9026d6ca3e8e685892779cccf687c0bf140de1a2
Complete support for UTF8 encoding conversion

All the conversions already always go through the MBS form so
simply always convert to MBS before trying to convert to any other encoding
in the `archive_mstring_get_*` functions.

* Do this by calling `archive_mstring_get_mbs` to avoid duplicating code
* Add `struct archive*` parameter to `archive_mstring_get_mbs_l`
* Add test for set/get/update utf8 functions on entry
* Add test for encoding conversion.

Fix #931
libarchive/archive_acl.c
libarchive/archive_entry.c
libarchive/archive_string.c
libarchive/archive_string.h
libarchive/test/test_archive_string_conversion.c
libarchive/test/test_entry.c