diff options
-rw-r--r-- | tests/expected/col/multibyte | 2 | ||||
-rw-r--r-- | text-utils/col.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/expected/col/multibyte b/tests/expected/col/multibyte index c6d36cce3..4e299adc1 100644 --- a/tests/expected/col/multibyte +++ b/tests/expected/col/multibyte @@ -1 +1 @@ -col: Invalid or incomplete multibyte or wide character +col: failed on line 1: Invalid or incomplete multibyte or wide character diff --git a/text-utils/col.c b/text-utils/col.c index c6b2bdf56..1ba195e24 100644 --- a/text-utils/col.c +++ b/text-utils/col.c @@ -243,7 +243,7 @@ int main(int argc, char **argv) errno = 0; if ((ch = getwchar()) == WEOF) { if (errno == EILSEQ) { - warn(_("failed on line %d"), max_line); + warn(_("failed on line %d"), max_line + 1); ret = EXIT_FAILURE; } break; |