Skip to content

Commit

Permalink
Enforce US English error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
robcasloz committed Apr 12, 2021
1 parent e84d171 commit 702e763
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -34,6 +34,7 @@
import java.nio.channels.ReadableByteChannel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import javax.swing.SwingUtilities;
import javax.xml.parsers.ParserConfigurationException;
Expand Down Expand Up @@ -529,6 +530,8 @@ public GraphDocument parse() throws IOException {
}
try {
XMLReader reader = createReader();
reader.setProperty("http://apache.org/xml/properties/locale",
new Locale("en", "US"));
reader.setContentHandler(new XMLParser(xmlDocument, monitor));
reader.parse(new InputSource(Channels.newInputStream(channel)));
} catch (SAXException ex) {
Expand Down

0 comments on commit 702e763

Please sign in to comment.