mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
[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
This commit is contained in:
parent
cf2dce6728
commit
65ac0ce09e
@ -830,6 +830,7 @@ bool FileManager::loadFileData(Document doc, const TCHAR * filename, Utf8_16_Rea
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
lenFile = fread(data+incompleteMultibyteChar, 1, blockSize-incompleteMultibyteChar, fp) + incompleteMultibyteChar;
|
lenFile = fread(data+incompleteMultibyteChar, 1, blockSize-incompleteMultibyteChar, fp) + incompleteMultibyteChar;
|
||||||
|
if (lenFile <= 0) break;
|
||||||
|
|
||||||
// check if file contain any BOM
|
// check if file contain any BOM
|
||||||
if (isFirstTime)
|
if (isFirstTime)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user