Hi all, In the following extract from libc reference "< 0" must be changed to "> 0" and "wgetc" must be changed to "getwc": In other words, sloppy code like { int c; ... while ((c = getc (fp)) < 0) ... } has to be rewritten to use WEOF explicitly when wide characters are used: { wint_t c; ... while ((c = wgetc (fp)) != WEOF) ... } Regards, Igor