re PR libstdc++/11844 (Incorrect values of ctype_base::alnum and ctype_base::graph)
authorPaolo Carlini <pcarlini@unitus.it>
Thu, 9 Oct 2003 19:10:56 +0000 (21:10 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 9 Oct 2003 19:10:56 +0000 (19:10 +0000)
commit2f800bccecbaf64ae889ea7da8344b5bc7b29145
tree6fc8259baed5ace8e6cc49ec4a57d83ceb21a2cb
parentb18ff0cdda2c2502dae22504ed7c303ac021bad4
re PR libstdc++/11844 (Incorrect values of ctype_base::alnum and ctype_base::graph)

2003-10-09  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11844
* config/os/aix/ctype_base.h: Fix 'alnum' and 'graph'
to conform to the requirements of 22.2.1.
* config/os/bsd/freebsd/ctype_base.h: Likewise.
* config/os/djgpp/ctype_base.h: Likewise.
* config/os/generic/ctype_base.h: Likewise.
* config/os/gnu-linux/ctype_base.h: Likewise.
* config/os/hpux/ctype_base.h: Likewise.
* config/os/irix/irix6.5/ctype_base.h: Likewise.
* config/os/solaris/solaris2.6/ctype_base.h: Likewise.
* config/os/solaris/solaris2.7/ctype_base.h: Likewise.
* testsuite/22_locale/ctype/11844.cc: New.

* config/locale/generic/ctype_members.cc (do_is):
Generically, use a bitmasksize of 15 (instead of 10), since
we don't know the numerical encoding of the various categories
in the underlying /usr/include/ctype.h.

From-SVN: r72281
12 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/ctype_members.cc
libstdc++-v3/config/os/aix/ctype_base.h
libstdc++-v3/config/os/bsd/freebsd/ctype_base.h
libstdc++-v3/config/os/djgpp/ctype_base.h
libstdc++-v3/config/os/generic/ctype_base.h
libstdc++-v3/config/os/gnu-linux/ctype_base.h
libstdc++-v3/config/os/hpux/ctype_base.h
libstdc++-v3/config/os/irix/irix6.5/ctype_base.h
libstdc++-v3/config/os/solaris/solaris2.6/ctype_base.h
libstdc++-v3/config/os/solaris/solaris2.7/ctype_base.h
libstdc++-v3/testsuite/22_locale/ctype/11844.cc [new file with mode: 0644]