termux-packages/packages/libarchive/archive_write_disk_posix.c....

16 lines
534 B
Diff
Raw Normal View History

2015-06-13 01:03:31 +02:00
diff -u -r ../libarchive-3.1.2/libarchive/archive_write_disk_posix.c ./libarchive/archive_write_disk_posix.c
--- ../libarchive-3.1.2/libarchive/archive_write_disk_posix.c 2013-02-08 01:52:07.000000000 +0100
+++ ./libarchive/archive_write_disk_posix.c 2014-07-15 19:09:38.106845578 +0200
@@ -2456,7 +2456,11 @@
alen = 0;
mb = 0;
complete = 1;
+#ifdef __ANDROID__
+ utf8 = 1;
+#else
utf8 = (strcmp(nl_langinfo(CODESET), "UTF-8") == 0)? 1: 0;
+#endif
for (p = a->name; *p != '\0'; p++) {
++alen;
if (*p == '\\') {