From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 450893857000; Sun, 5 Jul 2020 17:13:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 450893857000 From: "nickblack at linux dot com" To: libc-locales@sourceware.org Subject: [Bug localedata/22744] wcwidth glibc issue for 0x2630 Unicode character Date: Sun, 05 Jul 2020 17:13:21 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nickblack at linux dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: libc-locales@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-locales mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jul 2020 17:13:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D22744 nick black changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickblack at linux dot com --- Comment #1 from nick black --- If I add a call to setlocale(LC_ALL, "") with a proper LANG environment variable and installed locale data, I get the expected result (which is 1, = and agrees with modern utf8proc): [schwarzgerat](0) $ cat test.c #include #include #include #include int main() { setlocale(LC_ALL, ""); wint_t c =3D 0x2630; printf("wcwidth returns %d\n", wcwidth(c)); printf("utf8proc_charwidth returns %d\n", utf8proc_charwidth(c)); return 0; } [schwarzgerat](0) $ gcc -D_XOPEN_SOURCE test.c -lutf8proc [schwarzgerat](0) $ ./a.out wcwidth returns 1 utf8proc_charwidth returns 1 [schwarzgerat](0) $ I believe this bug can be closed. The test program provided requires a setlocale() call to produce the expected result. --=20 You are receiving this mail because: You are on the CC list for the bug.=