From 0572b52ba18ce5a78d3b6dd477eed11316af798c Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Sat, 21 Jul 2018 19:55:52 -0300 Subject: [PATCH] Fix upper/lower case convertion for characters >= 0x80 (cherry picked from commit ecb071b2210a5b167f078375635d9c8210b38353) --- core/ustring.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/ustring.cpp b/core/ustring.cpp index 189a7b810c6..d3146415eec 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -885,8 +885,8 @@ String String::to_upper() const { for (int i = 0; i < upper.size(); i++) { - const char s = upper[i]; - const char t = _find_upper(s); + const CharType s = upper[i]; + const CharType t = _find_upper(s); if (s != t) // avoid copy on write upper[i] = t; } @@ -900,8 +900,8 @@ String String::to_lower() const { for (int i = 0; i < lower.size(); i++) { - const char s = lower[i]; - const char t = _find_lower(s); + const CharType s = lower[i]; + const CharType t = _find_lower(s); if (s != t) // avoid copy on write lower[i] = t; }