summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_unicode.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-07-23 15:00:26 +0200
committerNikita Popov <nikita.ppv@gmail.com>2017-07-23 15:07:02 +0200
commitc0bcd301d3661c6e2efeae1fdc823406114f6430 (patch)
treebc302405975c0c04424a877a7ea33fd188035dae /ext/mbstring/php_unicode.c
parent0e4af9192f03fcfaa38454dbb3ffd8924bb26375 (diff)
downloadphp-git-c0bcd301d3661c6e2efeae1fdc823406114f6430.tar.gz
Another fix for bug #69267
mb_strtoupper() was converting lowercase characters into titlecase characters, instead of uppercase characters. Luckily there are only very few characters with a distinct titlecase representation, so this mostly worked out okay...
Diffstat (limited to 'ext/mbstring/php_unicode.c')
-rw-r--r--ext/mbstring/php_unicode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mbstring/php_unicode.c b/ext/mbstring/php_unicode.c
index 9771289cd0..485988fe35 100644
--- a/ext/mbstring/php_unicode.c
+++ b/ext/mbstring/php_unicode.c
@@ -173,7 +173,7 @@ MBSTRING_API unsigned long php_unicode_toupper(unsigned long code, enum mbfl_no_
/*
* The character is lower case.
*/
- field = 2;
+ field = 1;
l = _uccase_len[0];
r = (l + _uccase_len[1]) - 1;