From aba3373da77729a457640f008c559516feae1eb4 Mon Sep 17 00:00:00 2001 From: unK Date: Tue, 30 Sep 2008 21:15:30 +0200 Subject: [PATCH] use wprintw instead of waddwstr to print wide strings --- src/window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window.cpp b/src/window.cpp index 499822cf..82ed1a97 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -382,7 +382,7 @@ void Window::Write(int limit, const wstring &str, bool clrtoeol) if (!collect && !color.empty()) { - waddwstr(itsWindow,tmp.c_str()); + wprintw(itsWindow, "%ls", tmp.c_str()); tmp.clear(); if (isdigit(color[2])) @@ -406,10 +406,10 @@ void Window::Write(int limit, const wstring &str, bool clrtoeol) color.clear(); } } - if (!tmp.empty()) waddwstr(itsWindow,tmp.c_str()); + if (!tmp.empty()) wprintw(itsWindow, "%ls", tmp.c_str()); } else - waddwstr(itsWindow,str.c_str()); + wprintw(itsWindow, "%ls", str.c_str()); if (clrtoeol) wclrtoeol(itsWindow);