diff options
-rw-r--r-- | src/eol.c | 2 | ||||
-rw-r--r-- | tests/autoeol-input.txt | 6 | ||||
-rw-r--r-- | tests/autoeol-output.txt | 4 | ||||
-rw-r--r-- | tests/testsuite.at | 2 |
4 files changed, 8 insertions, 6 deletions
@@ -239,7 +239,7 @@ teco_eol_reader_convert(teco_eol_reader_t *ctx, gchar **ret, gsize *data_len, GE else if (ctx->eol_style != SC_EOL_CR) ctx->eol_style_inconsistent = TRUE; } - ctx->last_char = buffer[i]; + ctx->last_char = (guchar)buffer[i]; break; } } diff --git a/tests/autoeol-input.txt b/tests/autoeol-input.txt index 237e7d1..705845d 100644 --- a/tests/autoeol-input.txt +++ b/tests/autoeol-input.txt @@ -1,4 +1,4 @@ -Hello -world
FOO -BAR
\ No newline at end of file +BAR +Здравствуй +мир
\ No newline at end of file diff --git a/tests/autoeol-output.txt b/tests/autoeol-output.txt index 5fb4c8e..9c1ef29 100644 --- a/tests/autoeol-output.txt +++ b/tests/autoeol-output.txt @@ -1,4 +1,4 @@ -Hello
-world
FOO
BAR
+Здравствуй
+мир
\ No newline at end of file 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]) |