rambaut / figtree

Automatically exported from code.google.com/p/figtree
382 stars 104 forks source link

Error when saving with version 1.4.5-Pre #200

Open safrye opened 6 months ago

safrye commented 6 months ago

Hi, I get an error when reopening Nexus files saved with FigTree version 1.4.5-Pre. Opening of Newick files is without problems but when saved as a Nexus file a full stop (.) is transformed into a comma (,) Example: This ((Bacillus_subtilis_16S_7:0.00083,((Staphylococcus_aureus_16S_2:0.00252, ... was transformed into this begin trees; tree tree_1 = [&R] ((Bacillus_subtilis_16S_7:0,000830000,((Staphylococcus_aureus_16S_2:0,00252000, ...

I am using Windows 10, German version, with Java 9.0.4 and 1.8.0_401 installed.

markscherz commented 5 months ago

Just guessing, but I think this is a regional computer problem, where FigTree uses the decimal separator that is default for your computer/region, instead of always using a fullstop. A suggested hotfix would be to change your global Windows separator: https://resrequest.helpspot.com/index.php?pg=kb.page&id=279.

safrye commented 5 months ago

Hi, That's what I also thought. No problem for me, as I can use the stable version. The hotfix would be to much as it would effect the whole system. I stick to metrics and comma. :)

Alqueno commented 2 months ago

I had the same issue in linux, but as a workaround I'd added LC_ALL=C before de java call in the figtree startup scrip and allows me to save properly formed nexus trees.