2010-07-19 14:13:47 +02:00
|
|
|
Index: src/cut.c
|
|
|
|
===================================================================
|
2010-11-15 17:52:55 +01:00
|
|
|
--- src/cut.c.orig 2010-11-11 16:28:46.581137538 +0100
|
|
|
|
+++ src/cut.c 2010-11-11 16:30:04.886974551 +0100
|
|
|
|
@@ -868,7 +868,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;
|
|
|
|
|