Skip to content
  • Jon Olav Hauglid's avatar
    9c8610b6
    Bug#20928289: DEFAULT CMAKE EXCLUDES UTF8_5624_1 CHARSET, · 9c8610b6
    Jon Olav Hauglid authored
                  REQUIRED FOR MAIN.CTYPE_LDML
    
    The problem was that on platforms where char is unsigned,
    the server was unable to parse collation defintions which
    included non-7bit ASCII characters. Affected platforms
    include ARM and PowerPC.
    
    The reason was that the parsing code in once place used
    '> 0' to check if a character was 7 bit or not. This
    will fail if the char is unsigned.
    
    This patch fixes the problem by rewriting the check to
    check the MSB explicitly.
    
    No test added as coverage is already included by
    existing tests - e.g. main.ctype_ldml.
    
    This patch is a modified version of the contributed patch.
    9c8610b6
    Bug#20928289: DEFAULT CMAKE EXCLUDES UTF8_5624_1 CHARSET,
    Jon Olav Hauglid authored
                  REQUIRED FOR MAIN.CTYPE_LDML
    
    The problem was that on platforms where char is unsigned,
    the server was unable to parse collation defintions which
    included non-7bit ASCII characters. Affected platforms
    include ARM and PowerPC.
    
    The reason was that the parsing code in once place used
    '> 0' to check if a character was 7 bit or not. This
    will fail if the char is unsigned.
    
    This patch fixes the problem by rewriting the check to
    check the MSB explicitly.
    
    No test added as coverage is already included by
    existing tests - e.g. main.ctype_ldml.
    
    This patch is a modified version of the contributed patch.
Loading