Re: [Boost-bugs] [Boost C++ Libraries] #5086: Fix for possible assertion failure in MSVC isctype.c

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5086: Fix for possible assertion failure in MSVC isctype.c
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-22 17:32:50


#5086: Fix for possible assertion failure in MSVC isctype.c
--------------------------------------------------------+-------------------
  Reporter: Kazutoshi Satoda <k_satoda@…> | Owner: jsiek
      Type: Patches | Status: new
 Milestone: To Be Determined | Component: tokenizer
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------------------------+-------------------

Comment (by marshall):

 I don't see where that's undefined behavior (except on MS-systems)

 Looking at the C specification (since the C++ one defers back to that),
 all I see is:

 7.4.1.9 The isspace function

 '''Synopsis: '''
 {{{
 #include <ctype.h>
 int isspace(int c);
 }}}

 '''Description:''' The isspace function tests for any character that is a
 standard white-space character or is one of a locale-specific set of
 characters for which isalnum is false. The standard white-space characters
 are the following: space (’ ’), form feed (’\f’), new-line (’\n’),
 carriage return (’\r’), horizontal tab (’\t’), and vertical tab (’\v’). In
 the "C" locale, isspace returns true only for the standard white-space
 characters.

 Is there something that I'm missing?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5086#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC