use US locale to format strings

This is especially important for all strings that are
passed to gnuplot. Because gnuplot uses the US locale
during parsing.
This commit is contained in:
2020-03-12 19:40:20 +01:00
parent 5386e29fcc
commit 9a311313ec
5 changed files with 16 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
package org.lucares.pdb.datastore.lang;
import java.util.Locale;
import org.antlr.v4.runtime.ParserRuleContext;
public class SyntaxException extends RuntimeException {
@@ -27,7 +29,8 @@ public class SyntaxException extends RuntimeException {
private static String generateMessage(final int lineStart, final int startIndex, final int lineStop,
final int stopIndex) {
return String.format("line=%d, start=%d, to line=%d stop=%d", lineStart, startIndex, lineStop, stopIndex);
return String.format(Locale.US, "line=%d, start=%d, to line=%d stop=%d", lineStart, startIndex, lineStop,
stopIndex);
}
public int getLineStart() {