DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 643GFHYq3133893 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 643GFHYq3133893 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=v8z/BOEt X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA3604BB24E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1777824916; bh=WSaPtb02ehMfts/5BuwTGQP8HXNh4nttBM+s6JbPDk8=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=v8z/BOEt276m5jFD/oUMdo7XZ5Tg6cAVDGwLFelGVGVoHDkPFhyclgpETmMNS1olE 4hZA00K2j8x1SufcuQn5d4mXKenODqg7AgozekTvd3bQWbR5fl/5ATLGX8t95QagsT 7O+d7OyFinyjc1QmXj1GmmwusyK9xtmqSU3uPxAE= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D6E984B99F79 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D6E984B99F79 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777824866; cv=none; b=VzC+IawprIW3xIAQxlgWr+v5sCzCdkJNSV8OqpEEzSbY4WqmfWrRG5SL7dumYSPOWW805AXlPfCrAjZc0K4PkgttVvjaMvh7jVzmjIwkGdwCC1PLoadz3X0yh32cA6hv/MT6+CBgx1uoNyH2LKMevePDxo2lFf68LLcYngF2jXI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777824866; c=relaxed/simple; bh=oNl65inJDYT8tXH846B1j2tS5eb9BytTmALSzG5mjZA=; h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature; b=KsrUgmtpyyFuHbId6WY2+IrW4JN6MJsOdCmhitmqrJk0gAff/37vTXuow3+30STdr3qu2ueIW3CNrR49vn709WOjMnYyTM1VYIPQPFrudUDoh8fAuEFv+G3EZs/PVWVL67va5NGS6Zhv1ZpB0dFAB0DQhSBjduDjsiThaWi9ABs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D6E984B99F79 Message-ID: Date: Sun, 3 May 2026 10:14:22 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: wcwidth broken with gcc 16 Content-Language: en-CA To: General Cygwin discussions and problem reports References: <874ikpawdk DOT fsf AT Gerda DOT invalid> <8ff2ab8d-dfdc-459c-96f3-ed4a4f451440 AT towo DOT net> <0140C1F4-CA22-46DE-AE21-69C5427C59B5 AT unified-streaming DOT com> Organization: Systematic Software In-Reply-To: X-Rspamd-Queue-Id: BC96920027 X-Rspamd-Server: rspamout06 X-Stat-Signature: hw1z7jukwfcetq3i74raky4o31jk3fjt X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361 X-Session-ID: U2FsdGVkX1+U5dV3UXh2tJ+82YrQbXpEeo398kkn+Xw= X-HE-Tag: 1777824863-275279 X-HE-Meta: U2FsdGVkX1/DbogAcuSpxotaCRfrB9G6dMmznEtsuS3V3xc53VF7M6EeN9gMLwdWvH7JOeUWBmUaHOd5+OPvjQAM5KmdKNQurMES0jYpWZfOnD1GkViLKRvjZAXXvbZ6ehxmEZckXHX2e9AZzyYFsyLzBzVSlHJeS6QTakiz3WqRAKSMiAVAtQEoKEc8iT9jrcKC4Fe3ItG9r1JTDl8EA6q7KEEReyAZUYzVA0S4uteXA2uQRgSWOoR2kVshhlqk5Xtyq5w1XJQKg0hv3eE0BJT1mJfGQ0pGzgzX+/bVqjkn8Q8ib+hqGRnsmdRi/ASxN95tEHGtgpLGQv0E0s0Svm2MHVWFkuxYmDx8Bgmwkg5kQr0nw3qCdt8vcAAWFwR7qnIxVUyXDZCT6ZaF0cas64QufDMap9gAV+dpidDQoNSrbe3snWb4aiM/dYoko74TrPEmJbtyWJrVhN5sKsN8fBUAnwyN8fyZ X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: General Cygwin discussions and problem reports Cc: Brian Inglis Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 643GFHYq3133893 On 2026-05-03 06:00, Thomas Wolff via Cygwin wrote: > Am 03.05.2026 um 12:58 schrieb Dimitry Andric: >> On 3 May 2026, at 12:47, Thomas Wolff via Cygwin wrote: >>> Am 03.05.2026 um 07:35 schrieb ASSI via Cygwin: >>>> Thomas Wolff via Cygwin writes: >>>>> Observed with gcc 16: >>>>> For a number of character ranges, mainly (but not only) from CJK >>>>> ranges, wcwidth incorrectly reports width 1 instead of 2, 0, or -1. >>>>> Test file attached. >>>> Can you report this upstream, please? >>> I couldn't yet test it with gcc 16 on Linux as there is no Debian package. >>> Did you test it? >> It looks like BSD-based libc gives 1 for U+D7C6, U+D7CB and U+D7CB, while >> glibc gives 0. > Thanks. Despite some differences, none of them gives the broken results of > gcc-16 on cygwin, so I wonder whether it makes sense to report upstream at this > time. It appears that libiberty does not contain any mb/wc macros/functions, , and only contains safe-ctype IS... macros/functions with fixed ASCII characters. Does gcc, like most GNU products, include some release of gnulib? Could gnulib or gcc config detect some lack of support and "fix" newlib-cygwin support of Unicode properties declared in wchar.h/wctype.h, or used in i18n, libunistring, and Unicode string functions, especially if doing any kind of cross-bootstrap? https://www.gnu.org/software/gnulib/MODULES.html I also note that w32api-headers/runtime are gcc runtime dependencies and hope they are used only in COFF/PE-related generation? -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple