[BUG_FIXED] (Author: FLS) Fix EOL type not correctly determined for UTF-16 files bug.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@1143 f5eea248-9336-0410-98b8-ebc06183d4e3
remotes/trunk
Don Ho 11 years ago
parent cf2dce6728
commit 65ac0ce09e

@ -830,6 +830,7 @@ bool FileManager::loadFileData(Document doc, const TCHAR * filename, Utf8_16_Rea
do {
lenFile = fread(data+incompleteMultibyteChar, 1, blockSize-incompleteMultibyteChar, fp) + incompleteMultibyteChar;
if (lenFile <= 0) break;
// check if file contain any BOM
if (isFirstTime)

Loading…
Cancel
Save