Follow-up Comment #1, bug #19281 (project avr-libc):

>From the C99 Standard, section 7.4.1.6:

The isblank function tests for any character that is a standard blank
character or is one of a locale-specific set of characters for which isspace
is true and that is used to separate words within a line of text. The
standard blank characters are the following: space (' '), and horizontal tab
('\t'). In the "C" locale, isblank returns true only for the standard blank
characters.

Now section J.4:

J.4 Locale-specific behavior
1 The following characteristics of a hosted environment are locale-specific
and are required
to be documented by the implementation:
....
— The sets of characters tested for by the isalpha, isblank, islower,
ispunct ,
isspace, isupper, iswalpha, iswblank, iswlower, iswpunct ,
iswspace, or iswupper functions (7.4.1.2, 7.4.1.3, 7.4.1.7, 7.4.1.9,
7.4.1.10,
....

The avr-libc documentation says:

int isspace     (       int      __c     )              

Checks for white-space characters. For the avr-libc library, these are:
space, form-feed ('\f'), newline ('\n'), carriage return ('\r'), horizontal
tab ('\t'), and vertical tab ('\v'). 

Not a bug - does conform to C99 standard. Suggest moderator closes bug.

Regards,

 -Colin

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?19281>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/



_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to