notepad-plus-plus-legacy/PowerEditor
dail8859 2fd963d932 Fix wrong EOL mode for big files
Closes #1054, Fixes #1002

The problem is if fread() is called multiple times, then
UnicodeConvertor->convert() is called multiple times, which causes
m_pNewBuf to point to the last read in chunk. Then after the entire file
was loaded, getEOLFormatForm(UnicodeConvertor.getNewBuf(), ...) was being
used which was only trying to detect the EOL mode from the last read in
chunk. If this last chunk started with \n then the file was detected as
Unix line endings. The file linked from issue #1002 happened to have just
the right situation where this occurred.
2015-10-27 14:03:08 +01:00
..
bin [RELEASE] Notepad++ 6.8.5 release 2015-10-18 23:00:48 +02:00
gcc Moved PowerEditor in trunk remotely 2009-04-24 23:34:47 +00:00
installer Update english.xml 2015-10-25 20:04:15 +01:00
misc Added +x on ChangeIcon.exe (fixes #590, closes #591) 2015-08-01 23:35:09 +02:00
scintilla.original.forUpdating Create scintillaUpdatingWorkFlow.txt 2015-07-25 01:35:43 +02:00
src Fix wrong EOL mode for big files 2015-10-27 14:03:08 +01:00
visual.net Synchronize VS2015 project 2015-10-24 22:02:07 +02:00