www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/05/30/23:50:30

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 64V3oUkX2645487
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 64V3oUkX2645487
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=XWDHDNJ+
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 864414BA2E3E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1780199429;
bh=HcUNsxvmOkdpaBV8TxYzGnFCDAKGAhZBD6s9zzQu3vo=;
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=XWDHDNJ+ptIDyng59RS3l4ft5ebpzbG5+CnSzBKJRcMknj1MT7Cc54Xmn3Tz2ydSH
hP9/zNBxr6/lMNTK7m85as4FU2vPGR4uyp0dDy1T2JWwUg0OlXxcZ3KlhirqAWAu1d
qpzhnDHAhy1iJjRAy/xQot6mPMePvkAZ8/IbIQWs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB3BC4BA2E04
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BB3BC4BA2E04
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780199411; cv=none;
b=a0OzMujCWWeX3ALoTjVyY9bv895URkB42ftQyKIEBrvX3OjNZ+7JFYOAVZcz81y3xHsFE8iC/hwbPnwlngR9ZWx3fD9LZx2GjZr4i2QMe4S5fM8GDD20IUwfk5XYOWa+FShwt/NfqI/i8DWMPEMkP3LXKnSnIXa3VRun+Dte+sU=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1780199411; c=relaxed/simple;
bh=CSORMkF/eNG0/s7aT/fBedp9u6kLD06bm/MFPPWYcZk=;
h=Message-ID:Date:MIME-Version:From:Subject:To:DKIM-Signature;
b=bSiUfJpwD0s20n4ozWBZNR/r6YSBsa/6GcuPnGtDwlHVkpxNRGXKrrpIHSO7iMHTVoN+bffgVbQPlSaBHj3o+7QeVlrq29oIfkZ2/s/8uQlduMuX/5nveXYr/LMyNBE01I3n9cfY2H96/0019ywTr7PbK6fSEtXTID54TjO8gsc=
ARC-Authentication-Results: i=1; sourceware.org;
dkim=pass (2048-bit key, unprotected)
header.d=SystematicSW.ab.ca header.i=@SystematicSW.ab.ca header.a=rsa-sha256
header.s=he header.b=IUl/xhW2
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB3BC4BA2E04
Message-ID: <91e5dcbd-0675-4aab-9697-32d71d6d0db2@SystematicSW.ab.ca>
Date: Sat, 30 May 2026 21:50:08 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [PATCH] wchar.h: tweak wcwidth prototype parameter wchar_t ->
wint_t
To: newlib AT sourceware DOT org
References: <93dc6225-0cd9-4ce0-b042-3ab88249fb7f AT towo DOT net>
Organization: Systematic Software
In-Reply-To: <93dc6225-0cd9-4ce0-b042-3ab88249fb7f@towo.net>
X-Rspamd-Queue-Id: BCE888000E
X-Stat-Signature: zckz6rktycypoccsfog3rf8hino1eo3t
X-Rspamd-Server: rspamout01
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX19vNPWkGGvmmCYqrYZaPit1f4QwwyJD1kc=
X-HE-Tag: 1780199409-617773
X-HE-Meta: U2FsdGVkX18kP7XmZlw2CVwdxBeyY4FDpUh4jSkUqCIgc/owi95STkAMo4A/RPr+15iraQSLzVzxjokGeKQlKtrn1MM9igtyh717zEYxalhde9zp33MkbVPRkeHlp5icCDV+Wirl4m/RolLIloQH8F2s1AbuGuzLLd3iAsQFyVEbVl1EtdrWPXvRwLbWdVxq8qPHqzrgdwFQxwTVDGyHY4jel8n6bByJBoDBEDZz5d1HmJWF8X1uq5GQBUxaaGSqXx2JsPf5oHRBduWTxCDmfTtyeTkvo2anYmor9JhkFVMWBq1aPOYA2XbY8ly27G/6pWawwTtYzcTabgs9KGkOhrbPfOwu9hLGRwwIe/WolzHY98FeWaTYMjd8D2vm/QIB9aLcnnIl18h+P7IJZTB6teHJFn6gGQDJYpX65E7KYCxAAB8PmNvRDqValYu82XqEaHJBHR6a3zeAKdF1Ys5Odc3xwtUQcTWzps2E/mM72x3wwmvU5VRUOuwr9Epxz+LU3R26yDxwxjYmOBrpzC1RMY8RqDt3/iDfS0gGXrlNGgsByu7wKxV25Q==
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: newlib AT sourceware DOT org
Cc: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT ab DOT ca>,
General Cygwin discussions and problem reports <cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 64V3oUkX2645487

On 2026-05-28 22:58, Thomas Wolff wrote:
> to make it compliant with newlib and the manual page;
> fixes cases of wrong width calculation:
> https://cygwin.com/pipermail/cygwin/2026-April/259597.html
> as mentioned in
> https://cygwin.com/pipermail/cygwin/2026-May/259734.html
> as described in
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125451#c14
 > attachment: 0001-wchar.h-tweak-wcwidth-prototype-parameter-wchar_t-wi.patch

The existing wcwidth declaration in newlib/libc/include/wchar.h agrees with
POSIX 8 SUS V5.

It is the man doc, definition, and implementation in
newlib/libc/string/wcwidth.c which need changed to match the specification and 
return codes in:

	https://pubs.opengroup.org/onlinepubs/9799919799/functions/wcwidth.html

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019