Blocked I/O does not support ungetc() function.
Don't use ungetc() on blocked I/O or use binary I/O.
JrEdcEpegEblkio01