Skip to content
  • Kurt Zeilenga's avatar
    Re: Patch: ctype functions require 'unsigned char' args (ITS#1678) · 709ce4fa
    Kurt Zeilenga authored
    			================
    Written by Hallvard B. Furuseth and placed into the public domain.
    This software is not subject to any license of the University of Oslo.
    			================
    
    Here are fixes for more places where the argument to ctype.h functions
    should be in the range of `unsigned char'.
    
    Explanation of the last patch (to schema_init.c:bvcasechr()):
    TOLOWER() and TOUPPER() return values in the range of `unsigned char',
    but bvcasechr() then compares those values with a plain `char'.  So I
    convert the return values from TOLOWER()/TOUPPER() to `char' first.
    
    Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
    709ce4fa