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

16 lines
524 B
Diff
Raw Normal View History

2017-03-27 02:38:37 +02:00
diff -u -r ../libarchive-3.3.1/libarchive/archive_write_disk_posix.c ./libarchive/archive_write_disk_posix.c
--- ../libarchive-3.3.1/libarchive/archive_write_disk_posix.c 2017-02-25 18:37:08.000000000 +0100
+++ ./libarchive/archive_write_disk_posix.c 2017-03-27 02:35:07.446390387 +0200
@@ -2756,7 +2756,11 @@
2015-06-13 01:03:31 +02:00
alen = 0;
mb = 0;
complete = 1;
+#ifdef __ANDROID__
2017-03-27 02:38:37 +02:00
+ utf8 = 1;
2015-06-13 01:03:31 +02:00
+#else
utf8 = (strcmp(nl_langinfo(CODESET), "UTF-8") == 0)? 1: 0;
+#endif
2017-03-27 02:38:37 +02:00
for (p = path; *p != '\0'; p++) {
2015-06-13 01:03:31 +02:00
++alen;
if (*p == '\\') {