+2005-09-25 Bruno Haible <bruno@clisp.org>
+
+ * x-csharp.c (phase2_getc): Fix mis-use of iconv() when the source
+ encoding is neither ASCII nor UTF-8.
+
2005-09-20 Bruno Haible <bruno@clisp.org>
* msgattrib.c (main): Invoke bindtextdomain for bison-runtime.
through phase1_getc as needed. This is needed to give reasonable
interactive behaviour when fp is connected to an interactive tty. */
unsigned char buf[MAX_PHASE1_PUSHBACK];
- size_t bufcount = 0;
+ size_t bufcount;
+ int c = phase1_getc ();
+ if (c == EOF)
+ return UEOF;
+ buf[0] = (unsigned char) c;
+ bufcount = 1;
for (;;)
{