Re: Re: [RFC] [DISCUSSION] Locale-independent float to string cast
| From: | Máté Kocsis | Date: | Wed, 22 Apr 2020 13:38:34 +0000 |
| Subject: | Re: Re: [RFC] [DISCUSSION] Locale-independent float to string cast | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-109773@lists.php.net to get a copy of this message | ||
Hi Guilliam,
Thank you for the reminder, we certainly forgot to resolve that issue.
After a quick investigation, it turned out that the %e and %E specifiers
are already
locale-insensitive, so we can leave them as-is.
Furthermore, the definition of the %G specifier according to the
documentation
is "Like the g specifier but uses E and F", which is not true, since %G is
always a
locale-dependent format, while %F is not.
That's why we think the way forward is to:
- fix the documentation independently of this RFC
- expose the %h and %H format specifiers which are "like the %g and %G
specifiers, but really use %e/%E and %f/%F respectively". Nikita is
currently
working on adding support for these, so it's also not a dependency of the
RFC.
That's why the vote is still scheduled for tomorrow.
Thanks,
Máté
(P.S: I've just seen that Nikita already wrote a similar answer)