Date: Sun, 29 Sep 2019 19:36:43 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240911] iswprint() wrong for some FULL WIDTH characters in UTF-8 locale Message-ID: <bug-240911-227-KUoZCPszf0@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-240911-227@https.bugs.freebsd.org/bugzilla/> References: <bug-240911-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240911 --- Comment #4 from amigan@gmail.com --- I apologize for the confusion and lack of detail. This is specifically for Powerline characters. They are not rendering correctly when the mosh server= is FreeBSD. The work in #225692 most certainly appeared to correct this, previously.I have modified the test program slightly to demonstrate these characters, and also to emit the tested character. % uname -v ; ./wcw=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 FreeBSD 13.0-CURRENT #0 r352860: Sat Sep 28 21:19:24 EDT 2019=20=20=20=20 root@argon.h.c907:/usr/obj/usr/src/amd64.amd64/sys/GENERIC=20 alnum:0x400100, cntrl:0x200, ideogram:0x80000, print:0x40000, space:0x4000, xdigit:0x10000, alpha:0x100, digit:0x400, lower:0x1000, punct:0x2000, special:0x100000, blank:0x20000, graph:0x800, phonogram:0x200000, rune:0xffffff00, upper:0x8000,=20 Default Locale is: C Character d 0x64 is in classes: alnum print xdigit alpha lower graph rune=20 in C locale, iswprint(0x64) =3D 1 in en_US.UTF-8 locale, iswprint(0x64) =3D 1 in ja_JP.UTF-8 locale, iswprint(0x64) =3D 1 Character 0xe0b1 is in classes: cntrl rune=20 in C locale, iswprint(0xe0b1) =3D 0 in en_US.UTF-8 locale, iswprint(0xe0b1) =3D 0 in ja_JP.UTF-8 locale, iswprint(0xe0b1) =3D 0 Character 0xe0b2 is in classes: cntrl rune=20 in C locale, iswprint(0xe0b2) =3D 0 in en_US.UTF-8 locale, iswprint(0xe0b2) =3D 0 in ja_JP.UTF-8 locale, iswprint(0xe0b2) =3D 0 Character 0xe0b3 is in classes: cntrl rune=20 in C locale, iswprint(0xe0b3) =3D 0 in en_US.UTF-8 locale, iswprint(0xe0b3) =3D 0 in ja_JP.UTF-8 locale, iswprint(0xe0b3) =3D 0 versus % uname -a ; ./wcw FreeBSD dtvax.dynatron.me 12.0-BETA4 FreeBSD 12.0-BETA4 r340285 GENERIC am= d64 alnum:0x400100, cntrl:0x200, ideogram:0x80000, print:0x40000, space:0x4000, xdigit:0x10000, alpha:0x100, digit:0x400, lower:0x1000, punct:0x2000, special:0x100000, blank:0x20000, graph:0x800, phonogram:0x200000, rune:0xffffff00, upper:0x8000,=20 Default Locale is: C Character d 0x64 is in classes: alnum print xdigit alpha lower graph rune=20 in C locale, iswprint(0x64) =3D 1 in en_US.UTF-8 locale, iswprint(0x64) =3D 1 in ja_JP.UTF-8 locale, iswprint(0x64) =3D 1 Character =EE=82=B1 0xe0b1 is in classes: print graph rune=20 in C locale, iswprint(0xe0b1) =3D 0 in en_US.UTF-8 locale, iswprint(0xe0b1) =3D 1 in ja_JP.UTF-8 locale, iswprint(0xe0b1) =3D 1 Character =EE=82=B2 0xe0b2 is in classes: print graph rune=20 in C locale, iswprint(0xe0b2) =3D 0 in en_US.UTF-8 locale, iswprint(0xe0b2) =3D 1 in ja_JP.UTF-8 locale, iswprint(0xe0b2) =3D 1 Character =EE=82=B3 0xe0b3 is in classes: print graph rune=20 in C locale, iswprint(0xe0b3) =3D 0 in en_US.UTF-8 locale, iswprint(0xe0b3) =3D 1 in ja_JP.UTF-8 locale, iswprint(0xe0b3) =3D 1 Character =EE=82=B0 0xe0b0 is in classes: print graph rune=20 in C locale, iswprint(0xe0b0) =3D 0 in en_US.UTF-8 locale, iswprint(0xe0b0) =3D 1 in ja_JP.UTF-8 locale, iswprint(0xe0b0) =3D 1 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240911-227-KUoZCPszf0>