From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 320813858D38; Sun, 11 Feb 2024 16:41:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 320813858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1707669673; bh=HF5e5Q9wlOOtsgnJJUQ3/3nlrFaIwn+0VwxXuH6YRNg=; h=From:To:Subject:Date:From; b=RTb9+0RSoVlzvo83gn1iqCGJAMwzLFg0vBFG9xytZ3UlX41s1RsJmnpyd6PR1/3mI Jr9MLRfQ9kHn/C7hLzQ3V1o1rjPgVNT5bVTyeFQxXnp8Pg8HNN3SMLidG0629EGCKN dnXBW9C92mITow4frLQnv9L4+9a2tz+Fsozzb9vM= From: "julesbertholet at quoi dot xyz" To: libc-locales@sourceware.org Subject: [Bug localedata/31370] New: wcwidth() does not treat DEFAULT_IGNORABLE_CODE_POINTs as zero-width Date: Sun, 11 Feb 2024 16:41:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: 2.40 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: julesbertholet at quoi dot xyz 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: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31370 Bug ID: 31370 Summary: wcwidth() does not treat DEFAULT_IGNORABLE_CODE_POINTs as zero-width Product: glibc Version: 2.40 Status: UNCONFIRMED Severity: normal Priority: P2 Component: localedata Assignee: unassigned at sourceware dot org Reporter: julesbertholet at quoi dot xyz CC: libc-locales at sourceware dot org Target Milestone: --- Unicode specifies (https://www.unicode.org/faq/unsup_char.html#3) that characters with the `Default_Ignorable_Code_Point` property > should be rendered as completely invisible (and non advancing, i.e. =E2= =80=9Czero width=E2=80=9D), if not explicitly supported in rendering. Hence, `wcwidth()` should give them all a width of 0, with two exceptions: - the soft hyphen (U+00AD SOFT HYPHEN) is assigned width 1 by longstanding precedent - U+115F HANGUL CHOSEONG FILLER combines with jungseong and jongseong jamo = to form a width-2 syllable block, and should therefore keep its width 2 However, `wcwidth()` currently also incorrectly assigns non-zero width to U+3164 HANGUL FILLER and U+FFA0 HALFWIDTH HANGUL FILLER. --=20 You are receiving this mail because: You are on the CC list for the bug.=