Mercurial > projects > dil
changeset 353:a3847ea28fee
- Fix in loadFile(): added else bodies.
author | aziz |
---|---|
date | Sun, 26 Aug 2007 09:25:03 +0000 |
parents | 321df078e247 |
children | b03aaa9c6bc5 |
files | trunk/src/dil/File.d |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/dil/File.d Sun Aug 26 00:55:05 2007 +0000 +++ b/trunk/src/dil/File.d Sun Aug 26 09:25:03 2007 +0000 @@ -23,6 +23,8 @@ text = toUTF8(cast(dchar[])utf32BEtoLE(data)); else if (data[1..4] == cast(ubyte[3])x"00 00 00") text = toUTF8(cast(dchar[])data); + else + text = cast(char[])data; } else if (data.length >= 2) { @@ -30,6 +32,8 @@ text = toUTF8(cast(wchar[])utf16BEtoLE(data)); else if (data[1] == 0) text = toUTF8(cast(wchar[])data); + else + text = cast(char[])data; } else text = cast(char[])data;