Commits

Stephen McKamey committed 218bda2

specifying locale for resource lookups

  • Participants
  • Parent commits d857354

Comments (0)

Files changed (3)

File duel-compiler/src/main/java/org/duelengine/duel/ast/ElementNode.java

 
 	static {
 		// definitions maintained in HTMLTags.properties
-		ResourceBundle config = ResourceBundle.getBundle(CONFIG_RESOURCE);
+		ResourceBundle config = ResourceBundle.getBundle(CONFIG_RESOURCE, Locale.ROOT);
 
 		String[] items = (config != null) && config.containsKey("voidTags") ?
 			config.getString("voidTags").split("\\s+") : new String[0];

File duel-compiler/src/main/java/org/duelengine/duel/parsing/DuelLexer.java

 
 		if (htmlConfig == null) {
 			// definitions maintained in HTMLCharRefs.properties
-			htmlConfig = ResourceBundle.getBundle(CONFIG_RESOURCE);
+			htmlConfig = ResourceBundle.getBundle(CONFIG_RESOURCE, Locale.ROOT);
 		}
 
 		if (htmlConfig.containsKey(name)) {

File duel-runtime/src/main/java/org/duelengine/duel/JSUtility.java

 		Map<String, Boolean> map;
 
 		// definitions maintained in JSVocab.properties
-		ResourceBundle config = ResourceBundle.getBundle(CONFIG_RESOURCE);
+		ResourceBundle config = ResourceBundle.getBundle(CONFIG_RESOURCE, Locale.ROOT);
 
 		// reserved words
 		tags = (config != null) && config.containsKey("reserved") ?