aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/testsuite.at
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-21 02:10:44 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-21 02:46:30 +0300
commitabfbeb17e56bd9abc275de0f7ace6c197e00e3bf (patch)
tree251134ddb2bd0929bff310b707d3b5bde239e4ee /tests/testsuite.at
parent3b3bc070f802491e98f87d9191e7d33fec78dd5a (diff)
downloadsciteco-abfbeb17e56bd9abc275de0f7ace6c197e00e3bf.tar.gz
fixed EOL conversion on UTF-8 texts
* The old bug of saving gchar in gints, so teco_eol_reader_t::last_char could become negative. * When converting from an UTF-8 text with CRLF linebreaks, we could have data loss and corruptions. * On strings ending in UTF-8 characters, teco_eol_reader_t::offset would overflow, resulting in invalid reads and potentially insertion of data garbage. I observed this with G~ on Gtk. * Test cased updated. Couldn't reproduce the bug with the test suite, though.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 7769cb7..729b3c8 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -134,6 +134,8 @@ AT_SETUP([Automatic EOL normalization])
AT_CHECK([$SCITECO -e "@EB'${srcdir}/autoeol-input.txt' EL-2\"N(0/0)' 2LR 13@I'' 0EL @EW'autoeol-sciteco.txt'"],
0, ignore, ignore)
AT_CHECK([cmp autoeol-sciteco.txt ${srcdir}/autoeol-output.txt], 0, ignore, ignore)
+AT_CHECK([$SCITECO -e "@EB'autoeol-sciteco.txt' EL-0\"N(0/0)' 2EL @EW''"], 0, ignore, ignore)
+AT_CHECK([cmp autoeol-sciteco.txt ${srcdir}/autoeol-input.txt], 0, ignore, ignore)
AT_CLEANUP
AT_SETUP([Memory limiting])