php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79849 Ucfirst and Russian cp1251 'я' letter
Submitted: 2020-07-13 12:16 UTC Modified: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: imbolk at gmail dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 8.0.0alpha2 OS: CentOS Linux 8.0
Private report: No CVE-ID: None
 [2020-07-13 12:16 UTC] 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:
--------------
я
А

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-13 17:53 UTC] 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-14 10:44 UTC] nikic@php.net
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
 [2020-07-14 10:44 UTC] nikic@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 17:01:24 2020 UTC