delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/01/02/23:00:58

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72C06385842B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1704254456;
bh=Zyt8gbICSiYKvqnpuTF/SjwmDymUjMMfF+DYyMTETqw=;
h=Date:To:Cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=rDrCo4Q6yPQAQSEuvfWKb3juxFUzMIbnO5EET840uozvr8buUL9mHIx2elmcfTj2L
rOtSjnbz9FZZgVXJRLoym7qmCKToWF83W8LEdVGhtkhY90iVjZCVQ7RpbQYneeI/R2
ZohW+rhVXODTZkyZvGh0sSpiYdomNT4CtT5jgDCs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B23973858C2A
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B23973858C2A
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704254403; cv=none;
b=ZkSlHhLBmbQQRdCKaRUUrvB7TLaau2pZ76OYfbrqcsVJm9Ugwo+an1trcvQEIB06dctA+p1SFHDMS86JPn02CG/f4s5a3Zfah9l1FcVebOwO8X7Rjt39bWcwmPP5DCoRHdDAJV0hs18Bg2x/ABrjgjDFoBIeuJviHXi5XaF8Am8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1704254403; c=relaxed/simple;
bh=BMn6y3eAPOgllDiJDW2uCF4Z60DQ0Zyy8F+NpAUljEQ=;
h=DKIM-Signature:MIME-Version:Date:From:To:Subject:Message-ID;
b=TgpcWQzYfFlRJ1zsWnlvtHJtzp26rwOz4xHXlsHIVGP1SyIasbW4BvvzCIOmR03EhVMIyqcrRWvsvym+ucD6PQDhmNXeX6c8fvpjWR0ojVTlKxS2KNbdlcCBsX+umf4bx/a/KiCfyMaV7BWl3m+lmd2sKfHGciZUBIQkXBmiT34=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Authority-Analysis: v=2.4 cv=CZQbWZnl c=1 sm=1 tr=0 ts=6594dbc0
a=pMSlDXUwMa7SJ1EIez8PdQ==:117 a=pMSlDXUwMa7SJ1EIez8PdQ==:17
a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=dEuoMetlWLkA:10
a=raeR7ZPaBPg6-aOEouUA:9 a=CjuIK1q_8ugA:10
MIME-Version: 1.0
Date: Tue, 02 Jan 2024 19:59:57 -0800
To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Cc: cygwin AT cygwin DOT com
Subject: Re: Possibly buggy use of ctype.h macros.
In-Reply-To: <20240103091124.7b4b9e2f7a896c0c2fe416ab@nifty.ne.jp>
References: <e7301d2e6aef776277cd6d81be0424a8 AT kylheku DOT com>
<20240103082556 DOT 8ba92d98e1023f6e6fb175e2 AT nifty DOT ne DOT jp>
<5d6e0d9bbeef1d4184b6067845d1e5a5 AT kylheku DOT com>
<20240103091124 DOT 7b4b9e2f7a896c0c2fe416ab AT nifty DOT ne DOT jp>
User-Agent: Roundcube Webmail/1.4.15
Message-ID: <382d26d43e66b45eca9facdd8bb9063d@kylheku.com>
X-Sender: kaz AT kylheku DOT com
X-CMAE-Envelope: MS4xfNXiRTFJbl+c7HwQWfPMmXtsCWo8kndMF0MKssxkEm9+Rf9nz+qW5hBLWvxtW4NhkSQTQ6yGQ8ZsjpjBkp1hKDq1eANSrTGqdSV8IaM8WXdVQRHl6eO/
gYRS2WfQ4QI9zom0wAeN6tKdRxmjaQqOvCYyWDUO+IJqxCrALflhM3G/jH6KQYn0Bui5OGHnVGcbypUPnvq8/pTHe7XGZOTVcXM=
X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
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: Kaz Kylheku via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Kaz Kylheku <kaz AT kylheku 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>

On 2024-01-02 16:11, Takashi Yano via Cygwin wrote:
> Perhaps, the off-by-one is for EOF as you guess.

I doubt it. If EOF were out of range of char, it would have to be -129 or less,
so that -127 would look even more wrong.

I see EOF is just -1. That value will also be produced by '\xFF', or "\xff"[0], etc.

This -127 displacement is worth looking into; there is a smell
emanating from it.


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