[wp-trac] [WordPress Trac] #49690: Reconsider ja_JP usage in Tests_DB::test_locale_floats()
WordPress Trac
noreply at wordpress.org
Tue Mar 24 01:19:21 UTC 2020
#49690: Reconsider ja_JP usage in Tests_DB::test_locale_floats()
----------------------------+--------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Database | Version: 5.1
Severity: normal | Keywords:
Focuses: |
----------------------------+--------------------
Background: [746/tests], [747/tests], #19861.
`Tests_DB::test_locale_floats()` ensures that floats formatted as `0,700`
get sanitized properly by `wpdb`.
This is relevant for locales using comma as a decimal separator: `ru_RU`,
`fr_FR`, `de_DE`, `es_ES`, and others.
[43359] / #43829 added `ja_JP` to the list. Per
[https://en.wikipedia.org/wiki/Decimal_separator Wikipedia], Japan uses a
dot, not a comma, as a decimal separator, so adding it here doesn't seem
to serve any purpose and might cause some confusion.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49690>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list