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 <dearv...@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 > >