screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [screen-devel] Simple patch for double -U issue


From: Alex Naumov
Subject: Re: [screen-devel] Simple patch for double -U issue
Date: Sun, 23 Jan 2022 20:17:40 +0200

Hi Clark,

thanks for reporting, but can you be a bit more verbose? :)
What does it mean "did not work"? Did you debug the value of nwin_options.encoding? What value does it have?
As you can see, It should be UTF8 in case of -1 and it should be -1 (as defined in nwin_undef struct in window.c).

Cheers,
Alex

On Mon, Nov 8, 2021 at 9:25 AM Clark Wang <dearvoid@gmail.com> wrote:
Hi,

I found a small issue where multiple -U options did not work. The
following patch fixed it for me. Just FYI.

-clark



diff --git a/src/screen.c b/src/screen.c
index f25f7fb..8aa3a1a 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -793,7 +793,7 @@ int main(int ac, char** av)

 #ifdef UTF8
           case 'U':
-            nwin_options.encoding = nwin_options.encoding == -1 ? UTF8 : 0;
+            nwin_options.encoding = UTF8;
             break;
 #endif


reply via email to

[Prev in Thread] Current Thread [Next in Thread]