mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: Fixed wrong charset issue in console (thanks o_wild)
git-svn-id: svn://ultimatepp.org/upp/trunk@6259 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
d539ef4363
commit
168c745448
1 changed files with 1 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ void Console::Append(const String& s) {
|
|||
EditPos p = GetEditPos();
|
||||
SetEditable();
|
||||
MoveTextEnd();
|
||||
WString t = Filter(s, sAppf).ToWString();
|
||||
WString t = Filter(FromSystemCharset(s), sAppf).ToWString();
|
||||
int mg = sb.GetReducedViewSize().cx / GetFont().Info().GetAveWidth();
|
||||
if(wrap_text && mg > 4) {
|
||||
int x = GetColumnLine(GetCursor()).x;
|
||||
|
|
@ -132,7 +132,6 @@ int Console::Flush()
|
|||
if(slot.outfile)
|
||||
slot.outfile->Put(s);
|
||||
if(!slot.quiet) {
|
||||
s = FromSystemCharset(s);
|
||||
if(console_lock < 0 || console_lock == i) {
|
||||
console_lock = i;
|
||||
Append(s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue