]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
- redraw screen when using entry in euc encodings
authormlichvar <mlichvar>
Wed, 23 Jan 2008 13:48:07 +0000 (13:48 +0000)
committermlichvar <mlichvar>
Wed, 23 Jan 2008 13:48:07 +0000 (13:48 +0000)
entry.c
newt.c
newt.spec

diff --git a/entry.c b/entry.c
index 0c131359460784285dd8e35bf894ccd6c0ca7e09..5693c3ec1d59ed7750b82d1006c067bec06b1aaf 100644 (file)
--- 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 d4bd778753d8561040317adc3daa3721a03de8ae..3cce61c5fe276f89c319b1d2007a097caa9d7554 100644 (file)
--- 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;
 
index 537b83ba721f6c8b0920efe91fe4c5524cb9b9cf..e0283997268788a1be515dda0bd89642440c6c9b 100644 (file)
--- 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