Skip to content

Commit b9424cd

Browse files
author
Rui Hirokawa
committed
MFH: fixed bug #29955 invalid case conversion in iso-8859-9.
1 parent 72f910c commit b9424cd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ext/mbstring/php_unicode.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ MBSTRING_API unsigned long php_unicode_toupper(unsigned long code, enum mbfl_no_
176176
l = _uccase_len[0];
177177
r = (l + _uccase_len[1]) - 3;
178178

179-
if (MBSTRG(current_language) == mbfl_no_language_turkish &&
180-
enc == mbfl_no_encoding_8859_9) {
179+
if (enc == mbfl_no_encoding_8859_9) {
181180
return php_turkish_toupper(code, l, r, field);
182181
}
183182

@@ -208,8 +207,7 @@ MBSTRING_API unsigned long php_unicode_tolower(unsigned long code, enum mbfl_no_
208207
l = 0;
209208
r = _uccase_len[0] - 3;
210209

211-
if (MBSTRG(current_language) == mbfl_no_language_turkish &&
212-
enc == mbfl_no_encoding_8859_9) {
210+
if (enc == mbfl_no_encoding_8859_9) {
213211
return php_turkish_tolower(code, l, r, field);
214212
}
215213

0 commit comments

Comments
 (0)