From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7FD4E3858C62; Wed, 12 Jul 2023 01:59:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FD4E3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689127176; bh=2/KHUsOetbM+e6ZgEr81Vu3Grd6X5obyIn02fynWz0g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=H7/lHfk21s+prF9PdE4lYnfD9n1WyNag/fDriNzP1ZBg7g6HA1IrYtX9nausYySEE 09a0sOV816sFrQivPFVa5rJGlJY/AJs/+gNCQEJ+9I2yrWkltQtJ4wfnEwNS+MJj8T BMpoj4tMwuNumyrAcipJc6KQzxUgsgNVbVMhuuy8= From: "eggert at cs dot ucla.edu" To: glibc-bugs@sourceware.org Subject: [Bug locale/30611] mbrtoc32 works incorrectly in the zh_HK.BIG5-HKSCS locale Date: Wed, 12 Jul 2023 01:59:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: locale X-Bugzilla-Version: 2.36 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eggert at cs dot ucla.edu 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30611 eggert at cs dot ucla.edu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eggert at cs dot ucla.edu --- Comment #1 from eggert at cs dot ucla.edu --- (In reply to Bruno Haible from comment #0) > https://lists.gnu.org/archive/html/bug-gnulib/2023-05/msg00105.html That URL also suggests that BIG5-HKSCS is also not choosable or useful in current GNU/Linux distributions, which is another argument for option (b), i.e., remove zh_HK/BIG5-HKSCS. As a practical matter, GNU diffutils will not support mbrtoc32's returning ((size_t) -3) as it's too painful to write and maintain the calling code, a= nd any rewrite would likely implicate performance as well as correctness. I ex= pect other applications are similar. So even if glibc supported the four unusual character pairs in BIG5-HKSCS[1], typical applications would misbehave anyw= ay. So option (a) is not realistic, whereas option (b) is simple and is a maintenance win. [1]: https://lists.gnu.org/r/bug-gnulib/2023-07/msg00014.html --=20 You are receiving this mail because: You are on the CC list for the bug.=