mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-05 17:44:55 -06:00
CtrlLib: TextCtrl::Load
git-svn-id: svn://ultimatepp.org/upp/trunk@6617 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7188602d1f
commit
23cbe1f09d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue