Ticket #15583 (closed defect: fixed)
wxTextFile doesn't read Old Mac line-endings (<CR>) correctly
|Reported by:||alexandrub||Owned by:|
Modify any of the samples to read a text file with old mac line ending style = lines delimited by carriage return (CR = 13) - I attached one here.
#include "wx/textfile.h" ... wxTextFile file(L"sample_file_with_CR_eol.txt"); file.Open(); wxString line = file.GetFirstLine();
If you break into the code you will notice the returned string is empty and the file is seek'ed to the next line.
The solution is a patch containing a few lines present in 2.8.12 code (attached).