Commit f6f0ed0
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- tests/integration/archive/ar
- __input__
- __output__/a1x01.ar_extract
2 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
0 commit comments