php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76960 mb_strtoupper case mapping for ß is not correct
Submitted: 2018-10-02 14:12 UTC Modified: 2018-10-02 14:15 UTC
From: fundaris at gmail dot com Assigned: cmb (profile)
Status: Duplicate Package: mbstring related
PHP Version: 7.3.0RC2 OS:
Private report: No CVE-ID: None
 [2018-10-02 14:12 UTC] fundaris at gmail dot com
Description:
------------
I don't know if this is related/the real bug.
https://bugs.php.net/bug.php?id=70072

After reading this https://github.com/php/php-src/blob/php-7.3.0RC2/UPGRADING

I noticed that example
mb_strtoupper("Straße")
// Produces STRAßE on PHP 7.2
// Produces STRASSE on PHP 7.3

But why are we doing this? There is an https://www.fileformat.info/info/unicode/char/1e9e/index.htm in UTF-8 spec and there for no need for a casing mapping!

Expected result:
----------------
mb_strtoupper("Straße")

should give a STRAßE with an LATIN CAPITAL LETTER SHARP S

Actual result:
--------------
STRAßE with an LATIN SMALL LETTER SHARP S

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-02 14:15 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2018-10-02 14:15 UTC] cmb@php.net
Duplicate of bug #76696.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC