gnats-prs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnats/434: Calls to isspace() uses signed chars


From: berra42
Subject: gnats/434: Calls to isspace() uses signed chars
Date: Wed, 20 Nov 2002 12:09:00 -0500

>Number:         434
>Notify-List:    
>Category:       gnats
>Synopsis:       Calls to isspace() uses signed chars
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 20 12:09:00 -0500 2002
>Originator:     Magnus Berglund
>Release:        3.999-1
>Organization:

>Environment:
Sparc, Solaris 8
>Description:
The gnats code uses the isspace() call at a couple of places.
At most of those places the argument supplied is an signed char. According to 
the standard the argument should be an unsigned char.

On Solaris this introduces some problems when the character is a non us-ascii 
character. E.g. the letter Ö (Odiaeresis) 
will be treated as a space character (for some locale settings).
>How-To-Repeat:

>Fix:
I added an extra typcast for each isspace() call:
 isspace((int)(unsigned char) c);

(did not want to change all chars to unsigned chars...)

>Unformatted:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]