[
https://issues.apache.org/jira/browse/FLINK-41639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yuepeng Pan updated FLINK-41639:
--------------------------------
Summary: Make MemorySize string formatting locale-independent (was:
MemorySize.toString() does not round-trip with localized digits)
> Make MemorySize string formatting locale-independent
> ----------------------------------------------------
>
> Key: FLINK-41639
> URL: https://issues.apache.org/jira/browse/FLINK-41639
> Project: Flink
> Issue Type: Bug
> Components: API / Core
> Reporter: Yue Zhang
> Assignee: Yue Zhang
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.5.0
>
>
> MemorySize.toString() formats the value with the JVM formatting locale.
> MemorySize.parse() reads only ASCII digits, so the string returned by
> toString() can be rejected in locales such as ar-EG.
> To reproduce, set the Java formatting locale to ar-EG, parse "2 mb", and pass
> the result of toString() back to MemorySize.parse().
> The second parse throws NumberFormatException with "text does not start with
> a number". The string form should use locale-independent digits so it can be
> parsed back to the same size.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)