Changeset 2533 for branches/libc-0.6


Ignore:
Timestamp:
Feb 5, 2006, 6:47:16 AM (20 years ago)
Author:
bird
Message:

#30: Fixed toupper / tolower EOF regression. (test_ctype.c found it).

Location:
branches/libc-0.6/src/emx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/ChangeLog.LIBC

    r2529 r2533  
    1212        o #25: Ensure correct address length returns from recvmsg and recvfrom.
    1313    - libc:
     14        o #30: Fixed toupper / tolower EOF regression.
    1415        o Fixed incorrect assertion in __libc_back_fsInfoObjRelease.
    1516        o #41: And added special file mode mask getter and extra validations to check that
  • branches/libc-0.6/src/emx/src/lib/locale/locale_ctype.c

    r2511 r2533  
    232232__ct_rune_t __toupper(__ct_rune_t __ch)
    233233{
    234     return __ch <= 255 && __ch >= -128
     234    return __ch <= 255 && __ch >= -128 && __ch != -1 /* EOF */
    235235        ? __libc_GLocaleCtype.auchUpper[__ch & 0xff]
    236236        : __ch;
     
    239239__ct_rune_t __tolower(__ct_rune_t __ch)
    240240{
    241     return __ch <= 255 && __ch >= -128
     241    return __ch <= 255 && __ch >= 128 && __ch != -1 /* EOF */
    242242        ? __libc_GLocaleCtype.auchLower[__ch & 0xff]
    243243        : __ch;
Note: See TracChangeset for help on using the changeset viewer.