From owner-freebsd-bugs@freebsd.org Sun Sep 29 19:36:44 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DCD8912874E for ; Sun, 29 Sep 2019 19:36:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46hG4X5HBQz3NbJ for ; Sun, 29 Sep 2019 19:36:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B377812874C; Sun, 29 Sep 2019 19:36:44 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B334512874B for ; Sun, 29 Sep 2019 19:36:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46hG4X3x7Rz3NbG for ; Sun, 29 Sep 2019 19:36:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 65E331EE55 for ; Sun, 29 Sep 2019 19:36:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x8TJaiKt020769 for ; Sun, 29 Sep 2019 19:36:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x8TJaiLC020768 for bugs@FreeBSD.org; Sun, 29 Sep 2019 19:36:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 240911] iswprint() wrong for some FULL WIDTH characters in UTF-8 locale Date: Sun, 29 Sep 2019 19:36:43 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: amigan@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Sep 2019 19:36:44 -0000 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.=