Fossil SCM

Fix off-by-one in temporary filename in test/commit-warning.test

danshearer 2026-11-20 12:17 UTC test-suite-new
Commit b06c3a76277ab0a0824541dade0c026e9f687b73ec5a61da05b7f4919b7379e5
1 file changed +2 -2
--- test/commit-warning.test
+++ test/commit-warning.test
@@ -72,15 +72,15 @@
7272
write_file utf-mod-c0-80 "11 bit NUL:\xC0\x80 is sometimes ok\n"
7373
write_file utf-bad-e0-80-80 "16 bit NUL:\xE0\x80\x80 is bad\n"
7474
write_file utf-bad-f0-80-80-80 "21 bit NUL:\xF0\x80\x80\x80 is bad\n"
7575
write_file utf-bad-f8-80-80-80-80 "26 bit NUL:\xF8\x80\x80\x80\x80 is bad\n"
7676
write_file utf-bad-fc-80-80-80-80-80 "31 bit NUL:\xFC\x80\x80\x80\x80\x80 is bad\n"
77
-write_file utf-bad-fe-80-80-80-80-80-80 "36 bit NUL:\xFC\x80\x80\x80\x80\x80 is bad\n"
77
+write_file utf-bad-fe-80-80-80-80-80-80 "36 bit NUL:\xFE\x80\x80\x80\x80\x80\x80 is bad\n"
7878
write_file utf-bad-c0-81 "overlong SOH:\xC0\x81 is bad\n"
7979
write_file utf-bad-c0-bf "overlong '?':\xC0\xBF is bad\n"
8080
write_file utf-bad-c1-bf "overlong DEL:\xC1\xBF is bad\n"
81
-write_file utf-bad-f4-90-80-80 "U+110000 not allowed:\xF4\x90\x80 not unicode\n"
81
+write_file utf-bad-f4-90-80-80 "U+110000 not allowed:\xF4\x90\x80\x80 not unicode\n"
8282
write_file utf-bad-f9-80-80-80-80 "U+2000000 not allowed:\xF9\x80\x80\x80\x80 not unicode\n"
8383
write_file utf-bad-ff "no byte FF:\xFF\n"
8484
write_file utf-ill16-lead "lead surrogate U+D800:\xED\xA0\x80 is ill formed\n"
8585
write_file utf-ill16-trail "trail surrogate U+DC00:\xED\xB0\x80 is ill formed\n"
8686
write_file utf-ill16-pair "surrogate pair U+10000:\xED\xA0\x80\xED\xB0\x80 is ill formed\n"
8787
--- test/commit-warning.test
+++ test/commit-warning.test
@@ -72,15 +72,15 @@
72 write_file utf-mod-c0-80 "11 bit NUL:\xC0\x80 is sometimes ok\n"
73 write_file utf-bad-e0-80-80 "16 bit NUL:\xE0\x80\x80 is bad\n"
74 write_file utf-bad-f0-80-80-80 "21 bit NUL:\xF0\x80\x80\x80 is bad\n"
75 write_file utf-bad-f8-80-80-80-80 "26 bit NUL:\xF8\x80\x80\x80\x80 is bad\n"
76 write_file utf-bad-fc-80-80-80-80-80 "31 bit NUL:\xFC\x80\x80\x80\x80\x80 is bad\n"
77 write_file utf-bad-fe-80-80-80-80-80-80 "36 bit NUL:\xFC\x80\x80\x80\x80\x80 is bad\n"
78 write_file utf-bad-c0-81 "overlong SOH:\xC0\x81 is bad\n"
79 write_file utf-bad-c0-bf "overlong '?':\xC0\xBF is bad\n"
80 write_file utf-bad-c1-bf "overlong DEL:\xC1\xBF is bad\n"
81 write_file utf-bad-f4-90-80-80 "U+110000 not allowed:\xF4\x90\x80 not unicode\n"
82 write_file utf-bad-f9-80-80-80-80 "U+2000000 not allowed:\xF9\x80\x80\x80\x80 not unicode\n"
83 write_file utf-bad-ff "no byte FF:\xFF\n"
84 write_file utf-ill16-lead "lead surrogate U+D800:\xED\xA0\x80 is ill formed\n"
85 write_file utf-ill16-trail "trail surrogate U+DC00:\xED\xB0\x80 is ill formed\n"
86 write_file utf-ill16-pair "surrogate pair U+10000:\xED\xA0\x80\xED\xB0\x80 is ill formed\n"
87
--- test/commit-warning.test
+++ test/commit-warning.test
@@ -72,15 +72,15 @@
72 write_file utf-mod-c0-80 "11 bit NUL:\xC0\x80 is sometimes ok\n"
73 write_file utf-bad-e0-80-80 "16 bit NUL:\xE0\x80\x80 is bad\n"
74 write_file utf-bad-f0-80-80-80 "21 bit NUL:\xF0\x80\x80\x80 is bad\n"
75 write_file utf-bad-f8-80-80-80-80 "26 bit NUL:\xF8\x80\x80\x80\x80 is bad\n"
76 write_file utf-bad-fc-80-80-80-80-80 "31 bit NUL:\xFC\x80\x80\x80\x80\x80 is bad\n"
77 write_file utf-bad-fe-80-80-80-80-80-80 "36 bit NUL:\xFE\x80\x80\x80\x80\x80\x80 is bad\n"
78 write_file utf-bad-c0-81 "overlong SOH:\xC0\x81 is bad\n"
79 write_file utf-bad-c0-bf "overlong '?':\xC0\xBF is bad\n"
80 write_file utf-bad-c1-bf "overlong DEL:\xC1\xBF is bad\n"
81 write_file utf-bad-f4-90-80-80 "U+110000 not allowed:\xF4\x90\x80\x80 not unicode\n"
82 write_file utf-bad-f9-80-80-80-80 "U+2000000 not allowed:\xF9\x80\x80\x80\x80 not unicode\n"
83 write_file utf-bad-ff "no byte FF:\xFF\n"
84 write_file utf-ill16-lead "lead surrogate U+D800:\xED\xA0\x80 is ill formed\n"
85 write_file utf-ill16-trail "trail surrogate U+DC00:\xED\xB0\x80 is ill formed\n"
86 write_file utf-ill16-pair "surrogate pair U+10000:\xED\xA0\x80\xED\xB0\x80 is ill formed\n"
87

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button