Bug #76696 [NEW]: Lower-case à is capitalized as SS instead of áº
| From: | tim dot eulitz at gmail dot com | Date: | Thu, 02 Aug 2018 16:26:59 +0000 |
| Subject: | Bug #76696 [NEW]: Lower-case à is capitalized as SS instead of Ạ| ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-216541@lists.php.net to get a copy of this message | ||
From: tim dot eulitz at gmail dot com
Operating system:
PHP version: 7.3.0beta1
Package: mbstring related
Bug Type: Bug
Bug description:Lower-case à is capitalized as SS instead of áº
Description:
------------
I have just read the changelog for PHP 7.3beta1 and noticed this example
in the mb_strtoupper changes:
>Support for full case-mapping and case-folding has been added. Unlike
simple case-mapping, full case-mapping may change the length of the
string. For example:
>
>mb_strtoupper("StraÃe")
>
>// Produces STRAÃE on PHP 7.2
>// Produces STRASSE on PHP 7.3"
The example provided is actually rather questionable and possibly wrong,
since Capital Ạhas been added to standard German in 2017. So instead
of either "STRAÃE" or "STRASSE", the correct uppercase version should
likely be "STRAáºE"
mb_strtolower('áº') correctly lower-cases the string to 'Ã', so this
would be consistent behavior in my opinion and would make the behavior
more future-proof.
Quick Wikipedia reference:
https://en.wikipedia.org/wiki/Capital_%E1%BA%9E
--
Edit bug report at https://bugs.php.net/bug.php?id=76696&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76696&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76696&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76696&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76696&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76696&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76696&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76696&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76696&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76696&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76696&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76696&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76696&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76696&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76696&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76696&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76696&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76696&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76696&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76696&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76696&r=mysqlcfg