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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user