]> Savannah Git Hosting - gnulib.git/commit
c-ctype: do not worry about EBCDIC + char signed
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Sep 2015 06:55:07 +0000 (23:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Sep 2015 06:55:46 +0000 (23:55 -0700)
commitd2de2a916f3b71147999bf793a3db9b029d98afe
tree38d90aa5295b1f37a4c6c5fa2e27a86c5b85b763
parentff1ef114b420658fdf8ea3d812a80650047386d0
c-ctype: do not worry about EBCDIC + char signed

Drop support for EBCDIC with char being signed, as this breaks too
many programs.  Problem reported by Ben Pfaff in:
http://lists.gnu.org/archive/html/bug-gnulib/2015-09/msg00053.html
* lib/c-ctype.h: Verify that we are not using EBCDIC with
char being signed.
(_C_CTYPE_LOWER_A_THRU_F_N): New macro.
(_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
(_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
(c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
* tests/test-c-ctype.c (test_all):
Simplify by assuming standard char values cannot be negative.
* tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
ChangeLog
lib/c-ctype.h
tests/test-c-ctype.c