Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

like_match.c

  • Tom Lane's avatar
    e04fa58d
    Fix unportable usages of tolower(). On signed-char machines, it is necessary · e04fa58d
    Tom Lane authored
    to explicitly cast the output back to char before comparing it to a char
    value, else we get the wrong result for high-bit-set characters.  Found by
    Rolf Jentsch.  Also, fix several places where <ctype.h> functions were being
    called without casting the argument to unsigned char; this is likewise
    unportable, but we keep making that mistake :-(.  These found by buildfarm
    member salamander, which I will desperately miss if it ever goes belly-up.
    e04fa58d
    History
    Fix unportable usages of tolower(). On signed-char machines, it is necessary
    Tom Lane authored
    to explicitly cast the output back to char before comparing it to a char
    value, else we get the wrong result for high-bit-set characters.  Found by
    Rolf Jentsch.  Also, fix several places where <ctype.h> functions were being
    called without casting the argument to unsigned char; this is likewise
    unportable, but we keep making that mistake :-(.  These found by buildfarm
    member salamander, which I will desperately miss if it ever goes belly-up.