From 3deb2b3970cb344d0c615e9d41a5fe7f3baf1417 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 18 Jan 2026 21:36:56 +0100 Subject: fixed auto-completion of Unicode file names * teco_string_diff() could return a number of bytes in the middle of an Unicode sequence. It now also requires Unicode strings. * Added a missing Unicode-validity check when replacing command lines (`{` and `}`). teco_cmdline_insert() should really be refactored, though (FIXME). * Added test case --- tests/testsuite.at | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at index f34eee3..23e2dab 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -439,6 +439,11 @@ TE_CHECK_CMDLINE([[@^Um{^C^C} Mm]], 0, ignore, stderr) AT_FAIL_IF([! $GREP "^Error:" stderr]) AT_CLEANUP +AT_SETUP([Replace non-Unicode command-line]) +TE_CHECK_CMDLINE([[{0EE 255@I//}]], 0, ignore, stderr) +AT_FAIL_IF([! $GREP "^Error:" stderr]) +AT_CLEANUP + AT_BANNER([Standard library]) AT_SETUP([Option parser]) -- cgit v1.2.3