[php-src] Issue #7779: Intl Extension: MessageFormatter prepends date with space

From: Date: Wed, 15 Dec 2021 09:43:57 +0000
Subject: [php-src] Issue #7779: Intl Extension: MessageFormatter prepends date with space
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238428@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7779
Comment Author: damianwadley

Unfortunately the ICU documentation doesn't go into these kinds of specifics, but given that
PHP is not the one deciding to insert the extra space, I'm going to assume that it's
deliberate behavior by the libicu library to respect the leading whitespace used by your custom date
style. Change it to '{0,date,YYYY-ww}' to match [how they write their
formatting patterns](https://unicode-org.github.io/icu/userguide/format_parse/messages/).
https://3v4l.org/OlhBU


Thread (1 message)

  • damianwadley
« previous php.bugs (#238428) next »