2010-07-19 14:13:47 +02:00
|
|
|
Index: src/cut.c
|
|
|
|
===================================================================
|
2012-04-23 09:12:18 +02:00
|
|
|
--- src/cut.c.orig 2012-04-16 13:17:12.321020103 +0200
|
|
|
|
+++ src/cut.c 2012-04-16 13:17:12.333019817 +0200
|
|
|
|
@@ -869,7 +869,10 @@ cut_fields_mb (FILE *stream)
|
2010-07-19 14:13:47 +02:00
|
|
|
c = getc (stream);
|
|
|
|
empty_input = (c == EOF);
|
|
|
|
if (c != EOF)
|
|
|
|
- ungetc (c, stream);
|
|
|
|
+ {
|
|
|
|
+ ungetc (c, stream);
|
|
|
|
+ wc = 0;
|
|
|
|
+ }
|
|
|
|
else
|
|
|
|
wc = WEOF;
|
|
|
|
|