summaryrefslogtreecommitdiff
path: root/test/snapshots/badutf.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-28 12:28:27 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit2b76b47c8a087b81be139b552d9a41bb2006dcd3 (patch)
treeafadf20ee86877f1125cec171a78fec9c42fac35 /test/snapshots/badutf.snap
parent4b53a39743dc5962e985fcf059a1222538d57b3f (diff)
downloadpardes-2b76b47c8a087b81be139b552d9a41bb2006dcd3.tar.gz
pardes-2b76b47c8a087b81be139b552d9a41bb2006dcd3.zip
fixing some crashes
Diffstat (limited to 'test/snapshots/badutf.snap')
-rw-r--r--test/snapshots/badutf.snap16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/snapshots/badutf.snap b/test/snapshots/badutf.snap
new file mode 100644
index 00000000..db9447b6
--- /dev/null
+++ b/test/snapshots/badutf.snap
@@ -0,0 +1,16 @@
+# Invalid UTF-8 must RENDER, never panic. Two sources, both ordinary use:
+# a file pane holds whatever bytes are on disk (latin-1, a truncated sequence,
+# an ELF opened by mistake), and the byte-column hscroll cuts a multi-byte
+# glyph in half by design. Undecodable bytes come out as U+FFFD, one per byte.
+file bad.txt hello \xff\xfe world\nlatin-1 caf\xe9 tail\ntruncated \xe6\x97 here\nend\n
+file wide.txt \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e \xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e tail\nsecond line\n
+start 30 100 bad.txt
+wait 8000 Kill Newcol
+stable 700 20000
+snap badbytes
+start 30 100 wide.txt
+wait 8000 Kill Newcol
+stable 700 20000
+key $
+stable 700 10000
+snap hscroll-midglyph