chiark / gitweb /
preload-hacks: Some patches to make it work.
[termux-packages] / packages / libarchive / archive_write_set_format_zip.c.patch
1 diff -u -r ../libarchive-3.2.0/libarchive/archive_write_set_format_zip.c ./libarchive/archive_write_set_format_zip.c
2 --- ../libarchive-3.2.0/libarchive/archive_write_set_format_zip.c       2016-01-01 17:18:57.000000000 -0500
3 +++ ./libarchive/archive_write_set_format_zip.c 2016-05-02 20:09:52.331542213 -0400
4 @@ -651,10 +651,8 @@
5                         if (strcmp(archive_string_conversion_charset_name(
6                                         zip->opt_sconv), "UTF-8") == 0)
7                                 zip->entry_flags |= ZIP_ENTRY_FLAG_UTF8_NAME;
8 -#if HAVE_NL_LANGINFO
9 -               } else if (strcmp(nl_langinfo(CODESET), "UTF-8") == 0) {
10 +               } else {
11                         zip->entry_flags |= ZIP_ENTRY_FLAG_UTF8_NAME;
12 -#endif
13                 }
14         }
15         filename_length = path_length(zip->entry);