Skip to content

Commit f6f0ed0

Browse files
committed
test(archive/ar): test file with non-utf8 file name
The test archive is created with the below scripts. A valid archive with utf8 file name (and content) is created with sh: echo "árvíztűrő tükörfúrógép" > "árvíztűrő tükörfúrógép" ar q utf8.ar "árvíztűrő tükörfúrógép" Then the resulting archive is mutated in the file name, so that it is no longer a valid utf8 encoded: python: c = Path("utf8.ar").read_bytes() Path("a1x01.ar").write_bytes(c.replace(bytes([0xa1]), bytes([0x01]), 1))
1 parent 264adfc commit f6f0ed0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:7981c6fabc0cb521c443d3b2e8e54713cae8bbccf8208b1950a078367567c3bb
3+
size 194
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:8f78453bcd88cb902c86638bafa48432fcbc262ede1eeacc2b623e14b1ea0a92
3+
size 31

0 commit comments

Comments
 (0)