http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59598
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #52 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think you will find that you need to open the file in binary mode and that might help you out. And that the char is 8bit characters so the you need to look up the encoding format for UTF-8.