Edit report at https://bugs.php.net/bug.php?id=79722&edit=1
ID: 79722
Updated by: cmb@php.net
Reported by: k dot witkowski at advoxstudio dot com
Summary: IntlDateFormatter::getPattern() for ar locale
returns extra characters
-Status: Open
+Status: Feedback
Type: Bug
-Package: intl
+Package: I18N and L10N related
Operating System: Ubuntu 18.04 + docker
PHP Version: 7.2.31
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
These right-to-left marks look fine to me:
<https://3v4l.org/c4vFQ>.
Previous Comments:
------------------------------------------------------------------------
[2020-06-21 18:29:34] k dot witkowski at advoxstudio dot com
Description:
------------
Wrong value of pattern for arabic locales.
Test script:
---------------
php > $dateFormat = new \IntlDateFormatter('ar_MO', \IntlDateFormatter::SHORT,
\IntlDateFormatter::NONE);
php > echo htmlentities($dateFormat->getPattern());
Expected result:
----------------
d/M/y
Actual result:
--------------
d‏/M‏/y
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79722&edit=1