Hi!
I've just been bitten by the famous Windows newline issue, i.e.
tried to read a textfile written by a windows application on
an unix platform. When reading a line with
std::getline(in put,buf);
GCC 3.2 leaves a trailing '\r' in buf.
Is this standard conformant? My impression was that getline
should remove '\r\n' as well as '\n'.
Thanks in advance & regards
frank
--
Frank Schmitt
4SC AG phone: +49 89 700763-0
e-mail: frank DOT schmitt AT 4sc DOT com
I've just been bitten by the famous Windows newline issue, i.e.
tried to read a textfile written by a windows application on
an unix platform. When reading a line with
std::getline(in put,buf);
GCC 3.2 leaves a trailing '\r' in buf.
Is this standard conformant? My impression was that getline
should remove '\r\n' as well as '\n'.
Thanks in advance & regards
frank
--
Frank Schmitt
4SC AG phone: +49 89 700763-0
e-mail: frank DOT schmitt AT 4sc DOT com
Comment