X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=t%2Fapenwarr%2F103-unicode%2Funicode.do;fp=t%2Fapenwarr%2F103-unicode%2Funicode.do;h=92971147e4c0e04a68ef5f0f79a52487fb6b61df;hb=a6510ac6225a3a93df9d27dc316a3c1c0fcde426;hp=0000000000000000000000000000000000000000;hpb=a5111e179e5aca57420fd1cc95c1b21e7cd34226;p=goredo.git diff --git a/t/apenwarr/103-unicode/unicode.do b/t/apenwarr/103-unicode/unicode.do new file mode 100644 index 0000000..9297114 --- /dev/null +++ b/t/apenwarr/103-unicode/unicode.do @@ -0,0 +1,16 @@ +# Test that redo can handle a script whose path contains non-ASCII characters. +# Note: the test directory is intentionally *not* a normalized unicode +# string, ie. filesystems like macOS will convert it to a different string +# at creation time. This tests weird normalization edge cases. +# +# Unfortunately, on macOS with APFS, it may helpfully normalize the path at +# *create* time, but not on future *open* attempts. Thus, we let the shell +# figure out what directory name actually got created, then pass that to redo. +# Hence the weird wildcard expansion loop. +rm -rf test-uni*.tmp +mkdir "test-uniçøðë.tmp" +for p in test-uni*.tmp; do + : >$p/test1.do + redo "$p/test1" +done +