From: mlichvar Date: Wed, 23 Jan 2008 13:48:07 +0000 (+0000) Subject: - redraw screen when using entry in euc encodings X-Git-Tag: r0-52-8~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aab8830a6fbc79381a936380718cd2d0b61c004;p=thirdparty%2Fnewt.git - redraw screen when using entry in euc encodings --- diff --git a/entry.c b/entry.c index 0c13135..5693c3e 100644 --- a/entry.c +++ b/entry.c @@ -196,6 +196,8 @@ static void entryDraw(newtComponent co) { return; } + newtTrashScreen(); + /* scroll if necessary */ scroll(en, co->width); diff --git a/newt.c b/newt.c index d4bd778..3cce61c 100644 --- a/newt.c +++ b/newt.c @@ -285,6 +285,8 @@ int newtInit(void) { if ((lang = getenv("LC_CTYPE")) == NULL) if ((lang = getenv("LANG")) == NULL) lang = ""; + /* slang doesn't support multibyte encodings except UTF-8, + avoid character corruption by redrawing the screen */ if (strstr (lang, ".euc") != NULL) trashScreen = 1; diff --git a/newt.spec b/newt.spec index 537b83b..e028399 100644 --- a/newt.spec +++ b/newt.spec @@ -88,6 +88,7 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/libnewt.a %changelog +- redraw screen when using entry in euc encodings - add back support for list of Entries in EntryWindow prompts in snack - fix segfault in whiptail when no entry is selected in radiolist