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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fundaris at gmail dot com
New email:
PHP Version: OS:

 

 [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: Thu Dec 26 16:01:31 2024 UTC