svn commit: r381213 - /jakarta/bcel/trunk/src/java/org/apache/bcel/util/InstructionFinder.java

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
Author: dbrosius
Date: Sun Feb 26 17:11:17 2006
New Revision: 381213

URL: http://svn.apache.org/viewcvs?rev=381213&view=rev
Log:
Bug: 38787 - Instructions are assumed to be english, to avoid odd Locale issues

Modified:
    jakarta/bcel/trunk/src/java/org/apache/bcel/util/InstructionFinder.java

Modified: jakarta/bcel/trunk/src/java/org/apache/bcel/util/InstructionFinder.java
URL: http://svn.apache.org/viewcvs/jakarta/bcel/trunk/src/java/org/apache/bcel/util/InstructionFinder.java?rev=381213&r1=381212&r2=381213&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/java/org/apache/bcel/util/InstructionFinder.java (original)
+++ jakarta/bcel/trunk/src/java/org/apache/bcel/util/InstructionFinder.java Sun Feb 26 17:11:17 2006
@@ -20,6 +20,7 @@
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -136,7 +137,8 @@
 	 * @return translated regular expression string
 	 */
 	private static final String compilePattern(String pattern) {
-		String lower = pattern.toLowerCase();
+		//Bug: 38787 - Instructions are assumed to be english, to avoid odd Locale issues
+		String lower = pattern.toLowerCase(Locale.ENGLISH);
 		StringBuffer buf = new StringBuffer();
 		int size = pattern.length();
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.