From 498a78af57cf6a6d52b2ad52435e44dbd4f86c16 Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Wed, 11 Oct 2023 15:47:53 -0400 Subject: [PATCH] newt(whiptail): fix code that was doing toupper of input --- patches/newt-0.52.20.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 patches/newt-0.52.20.patch diff --git a/patches/newt-0.52.20.patch b/patches/newt-0.52.20.patch new file mode 100644 index 00000000..97b65d27 --- /dev/null +++ b/patches/newt-0.52.20.patch @@ -0,0 +1,20 @@ +--- ./listbox.c.orig 2023-10-11 15:26:20.365000000 -0400 ++++ ./listbox.c 2023-10-11 15:27:26.762000000 -0400 +@@ -652,7 +652,7 @@ + for(i = 0, item = li->boxItems; item != NULL && + i < li->currItem; i++, item = item->next); + +- if (item && item->text && (toupper(*item->text) == toupper(ev.u.key))) { ++ if (item && item->text && *item->text == ev.u.key) { + item = item->next; + i++; + } else { +@@ -660,7 +660,7 @@ + i = 0; + } + while (item && item->text && +- toupper(*item->text) != toupper(ev.u.key)) { ++ *item->text != ev.u.key) { + item = item->next; + i++; + }