beast2 icon indicating copy to clipboard operation
beast2 copied to clipboard

English locale for countries with comma separator will produce the wrong NEXUS output

Open tresoldi opened this issue 4 years ago • 1 comments

This issue is related to https://github.com/CompEvol/beast2/issues/708 , which was closed with commit https://github.com/CompEvol/beast2/commit/6affcbf5c75910046414c8e848f3a675a60a4517 by adding a -Duser.language=en flag.

However, if the user-locale is set to one of the English-language locales that use commas as decimal separators (like "en_SE", the English locale for Sweden), the problem will persist (it won't be replaced by a default English local with dots as separators). One solution would be to pin to a specific locale, or to set the user country as well (perhaps to NZ?).

To be clearer, an output like:

tree STATE_0 = (((((((((((1[&rate=1.1151]:0.0169,(15[&rate=0.9079]:0.0019,...

will be rendered as:

tree STATE_0 = (((((((((((1[&rate=1,1151]:0,0169,(15[&rate=0,9079]:0,0019,...

tresoldi avatar Mar 14 '21 17:03 tresoldi

Edit: changed the issue title to make it clearer

tresoldi avatar Mar 14 '21 17:03 tresoldi