From a47276fca40841332ce372037c7667b333f59e04 Mon Sep 17 00:00:00 2001 From: Alexey Kopytov Date: Mon, 29 Jun 2015 19:39:46 +0300 Subject: [PATCH] Bug #74891: default cmake excludes utf8_5624_1 charset, required for main.ctype_ldml Fix scan_one_character() to work correctly on architectures where char is unsigned by default. --- strings/ctype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strings/ctype.c b/strings/ctype.c index 39892fd8b322..a9322ba7f450 100644 --- a/strings/ctype.c +++ b/strings/ctype.c @@ -425,7 +425,7 @@ scan_one_character(const char *s, const char *e, my_wc_t *wc) wc[0]= 0; return len; } - else if (s[0] > 0) /* 7-bit character */ + else if ((int8) s[0] > 0) /* 7-bit character */ { wc[0]= 0; return 1;