Req #46607 [Opn->Csd]: mb_convert_case with MB_CASE_TITLE should be improved
| From: | yohgaki@php.net | Date: | Thu, 07 Jan 2016 02:48:37 +0000 |
| Subject: | Req #46607 [Opn->Csd]: mb_convert_case with MB_CASE_TITLE should be improved | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198466@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=46607&edit=1
ID: 46607
Updated by: yohgaki@php.net
Reported by: kriskra at gmail dot com
Summary: mb_convert_case with MB_CASE_TITLE should be
improved
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: mbstring related
Operating System: *
PHP Version: 5.2.6
-Assigned To:
+Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
Dup of Bug #36311
Closing this one.
https://3v4l.org/P0RGT
’ should be handled. I'll write new bug report.
Previous Comments:
------------------------------------------------------------------------
[2016-01-04 17:00:43] daniel at 64studio dot com
This appears to be a duplicate of https://bugs.php.net/bug.php?id=36311
It was already fixed for straight apostrophe/quotes (HTML ') in https://bugs.php.net/bug.php?id=46626 but not for
the curled apostrophe/quote (HTML ’) when using PHP 7.1.0-dev from git.
Reproduce code:
---------------
<?php
echo mb_convert_case("People's issues versus peopleâs issues", MB_CASE_TITLE);
?>
Expected result:
----------------
People's Issues Versus Peopleâs Issues
Actual result:
--------------
People's Issues Versus PeopleâS Issues
------------------------------------------------------------------------
[2008-11-18 22:51:40] kriskra at gmail dot com
Description:
------------
mb_convert_case with MB_CASE_TITLE capitalises the 's' after an
apostrophe.
mb_convert_case with MB_CASE_TITLE capitalises the 't' after a
number.
Reproduce code:
---------------
<?php
print mb_convert_case("THE APOSTROPHE'S 'S' SHOULD NOT BE CAPITALISED",
MB_CASE_TITLE);
print mb_convert_case("IN THE 5TH CENTURY NOTING WAS CAPITALISED",
MB_CASE_TITLE);
?>
Expected result:
----------------
The Apostrophe's 'S' Should Not Be Capitalised
In The 5th Century Noting Was Capitalised
Actual result:
--------------
The Apostrophe'S 'S' Should Not Be Capitalised
In The 5Th Century Noting Was Capitalised
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=46607&edit=1