delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/06/01/11:00:31

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Fri, 1 Jun 2001 11:00:27 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: isspace() & i18n
Message-ID: <20010601110027.L833@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <13254193676 DOT 20010530145756 AT logos-m DOT ru> <20010530095254 DOT B17603 AT redhat DOT com> <9265832872 DOT 20010530181156 AT logos-m DOT ru> <20010530101516 DOT E17603 AT redhat DOT com> <3066562491 DOT 20010530182405 AT logos-m DOT ru> <3B151688 DOT B6ABA6FD AT yahoo DOT com> <20010531140313 DOT C23914 AT redhat DOT com> <199210132945 DOT 20010601101658 AT logos-m DOT ru>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <199210132945.20010601101658@logos-m.ru>; from deo@logos-m.ru on Fri, Jun 01, 2001 at 10:16:58AM +0400

On Fri, Jun 01, 2001 at 10:16:58AM +0400, egor duda wrote:
>Hi!
>
>Thursday, 31 May, 2001 Christopher Faylor cgf AT redhat DOT com wrote:
>
>CF> This has been checked in.  It doesn't solve the larger issue of
>CF> if this is a newlib bug or not but I think that this is a correct
>CF> fix nonetheless.
>
>unfortunately, no. first, as isspace() wants int, this is equivalent
>to (int)(unsigned int)(char)(-33) == -33

Ah yes.  I remember this.  We probably need something like:

(unsigned) ((x) & 0xff)

cgf

- Raw text -


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