Bug #79849 [Opn->Csd]: Ucfirst and Russian cp1251 'Ñ' letter
| From: | nikic@php.net | Date: | Tue, 14 Jul 2020 10:44:26 +0000 |
| Subject: | Bug #79849 [Opn->Csd]: Ucfirst and Russian cp1251 'Ñ' letter | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-228033@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79849&edit=1
ID: 79849
Updated by: nikic@php.net
Reported by: imbolk at gmail dot com
Summary: Ucfirst and Russian cp1251 'Ñ' letter
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
Operating System: CentOS Linux 8.0
PHP Version: 8.0.0alpha2
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of Evgeny.Stepanischev@tatar.ru
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ce149b0cb8ce8983eae3885dd42e9ccbdc650d6e
Log: Fixed bug #79849
Previous Comments:
------------------------------------------------------------------------
[2020-07-13 17:53:28] imbolk at gmail dot com
The following pull request has been associated:
Patch Name: Fixed bug #79849
On GitHub: https://github.com/php/php-src/pull/5853
Patch: https://github.com/php/php-src/pull/5853.patch
------------------------------------------------------------------------
[2020-07-13 12:16:12] imbolk at gmail dot com
Description:
------------
ucfirst doesn't uppercase Russian 'Ñ' letter (cp1251)
Test script:
---------------
<?php
setlocale(LC_ALL, 'ru_RU.cp1251');
var_dump(
iconv('cp1251', 'utf8', ucfirst('Ñ')),
iconv('cp1251', 'utf8', ucfirst('а')),
);
Expected result:
----------------
Я
Ð
Actual result:
--------------
Ñ
Ð
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79849&edit=1