| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Usage of `Storage#format(String, Object...)` will use the default locale for it's formatting. This can lead to unexpected formatting if a right-to-left language such as Arabic is the default locale. Update all usages to use `String.format(Locale.US, pattern, Object...)` so we ensure things like headers or error messages are formatted according to the US conventions which match `en_US` and ascii byte conventions. Incidentally, things like right-to-left formatting seem to only apply to java11+ not java8. Fixes #2972
There was a problem hiding this comment.
Yowza! This touches a lot of files but looks pretty boilerplate
Sorry, something went wrong.
Perhaps related to https://openjdk.org/jeps/252 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Usage of Storage#format(String, Object...) will use the default locale for it's formatting. This can lead to unexpected formatting if a right-to-left language such as Arabic is the default locale.
Update all usages to use String.format(Locale.US, pattern, Object...) so we ensure things like headers or error messages are formatted according to the US conventions which match en_US and ascii byte conventions.
Incidentally, things like right-to-left formatting seem to only apply to java11+ not java8.
Fixes #2972