java: format strings containing integers in ROOT locale.
We use strings to pass structured data from the JVM to Go. In a locale using Indian-Arabic numerals: ۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹ the Java code will format decimal strings using Indian-Arabic glyphs. Go doesn't get a locale set automatically by the Android runtime, so it always parses strings in a default en-US `unable to parse "lo ١ ٦٥٥٣٦ true false true false false |": expected integer` Make the Java code format using the ROOT locale. These strings are purely internal to pass between the two runtimes, they are not shown to the user. Fixes https://github.com/tailscale/tailscale/issues/4156 Signed-off-by: Denton Gentry <dgentry@tailscale.com>pull/41/head
parent
a8f017ddf6
commit
fd42b4b352
Loading…
Reference in New Issue