Skip to content

Commit ed58e00

Browse files
committed
Fixes #579... took this out accidentally.
1 parent 9297efd commit ed58e00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage/ctab/src/main/java/org/openscience/cdk/io/MDLV3000Writer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import java.io.Writer;
5454
import java.nio.charset.StandardCharsets;
5555
import java.text.DecimalFormat;
56+
import java.text.DecimalFormatSymbols;
5657
import java.text.SimpleDateFormat;
5758
import java.util.ArrayList;
5859
import java.util.Collection;
@@ -777,7 +778,7 @@ public void close() throws IOException {
777778
*/
778779
private static final class V30LineWriter implements Closeable {
779780
// note: non-static
780-
private final DecimalFormat decimalFmt = new DecimalFormat("#.#####");
781+
private final DecimalFormat decimalFmt = new DecimalFormat("#.#####", DecimalFormatSymbols.getInstance(Locale.ROOT));
781782
public static final String PREFIX = "M V30 ";
782783
public static final int LIMIT = 78; // -\n takes two chars (80 total)
783784

0 commit comments

Comments
 (0)