From 6f7bb02e7f7b8ff8fe4d67a433cd3a2250df7a11 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 21 Aug 2024 07:35:27 +0800 Subject: vim-patch:9.1.0686: zip-plugin has problems with special characters (#30108) Problem: zip-plugin has problems with special characters (user202729) Solution: escape '*?[\' on Unix and handle those chars a bit differently on MS-Windows, add a test, check before overwriting files runtime(zip): small fixes for zip plugin This does the following: - verify the unzip plugin is executable when loading the autoload plugin - handle extracting file names with '[*?\' in its name correctly by escaping those characters for the unzip command (and handle those characters a bit differently on MS-Windows, since the quoting is different) - verify, that the extract plugin is not overwriting a file (could cause a hang, because unzip asking for confirmation) - add a test zip file which contains those special file names fixes: vim/vim#15505 closes: vim/vim#15519 https://github.com/vim/vim/commit/7790ea0c680a9f951a86066e5940ec16b2333c9a Co-authored-by: Christian Brabandt --- test/old/testdir/samples/testa.zip | Bin 0 -> 1236 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 test/old/testdir/samples/testa.zip (limited to 'test/old/testdir/samples') diff --git a/test/old/testdir/samples/testa.zip b/test/old/testdir/samples/testa.zip new file mode 100644 index 0000000000..10b0346e76 Binary files /dev/null and b/test/old/testdir/samples/testa.zip differ -- cgit