CtrlLib: TextCtrl::Load

git-svn-id: svn://ultimatepp.org/upp/trunk@6617 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-11-29 15:47:45 +00:00
parent 7188602d1f
commit 23cbe1f09d

View file

@ -107,7 +107,7 @@ int TextCtrl::Load(Stream& s, byte charset) {
if(c == '\r')
cr = true;
if(c == '\n') {
if(b8 & 128) { // There are some chars > 127, need to convert
if(charset != CHARSET_UTF8 || (b8 & 128)) {
WString w = ToUnicode(~ln, ln.GetCount(), charset);
line.Add(w);
total += w.GetLength() + 1;