Skip to content

Problem with MDLV3000Writer on a system with Locale.de_DE (Windows 10, OpenJDK8) #579

Description

@markussitzmann

Hi,

after a fresh clone of the CDK/master I was running the test suite. During this, some MDLV3000Writer tests failed because the molfiles were created with "," instead of "." for 3D coordinates/floating points.

After changing line 794-796 in MDLV3000Writer from

private static final class V30LineWriter implements Closeable { // note: non-static private final DecimalFormat decimalFmt = new DecimalFormat("#.#####");

to

private static final class V30LineWriter implements Closeable { // note: non-static private final DecimalFormat decimalFmt = new DecimalFormat("#.#####", DecimalFormatSymbols.getInstance(Locale.ROOT));

the tests pass now but I am not sure whether this is a good solution (and I would be surprised if I'm the first one who runs into this problem ... do I miss something?)

Markus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions