Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2007-01-26 14:44:03 -0500
committerrelves2007-01-26 14:44:03 -0500
commit264807a65141e89d17640557211653e8d2227091 (patch)
tree34f2854888a56137490f04244f7f3f2cbc902375 /org.eclipse.mylyn.tasks.core
parent4382ccf8adf417bec111d4083be857be0bb073e0 (diff)
downloadorg.eclipse.mylyn.tasks-264807a65141e89d17640557211653e8d2227091.tar.gz
org.eclipse.mylyn.tasks-264807a65141e89d17640557211653e8d2227091.tar.xz
org.eclipse.mylyn.tasks-264807a65141e89d17640557211653e8d2227091.zip
NEW - bug 168652: Mylar fails if the default locale is Turkish due to i and I are different characters in Turkish Locale
https://bugs.eclipse.org/bugs/show_bug.cgi?id=168652
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlStreamTokenizer.java3
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlTag.java6
2 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlStreamTokenizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlStreamTokenizer.java
index 9edf98a2e..1670c9da7 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlStreamTokenizer.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlStreamTokenizer.java
@@ -17,6 +17,7 @@ import java.io.Reader;
import java.net.URL;
import java.text.ParseException;
import java.util.HashMap;
+import java.util.Locale;
public class HtmlStreamTokenizer {
@@ -229,7 +230,7 @@ public class HtmlStreamTokenizer {
for (; i < s.length() && !Character.isWhitespace(s.charAt(i)) && s.charAt(i) != '='; i++) {
// just move forward
}
- String attributeName = s.substring(start, i).toLowerCase();
+ String attributeName = s.substring(start, i).toLowerCase(Locale.ENGLISH);
if (attributeName.equals("/")) {
tag.setSelfTerminating(true);
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlTag.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlTag.java
index e997defd3..bb34b9312 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlTag.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/web/HtmlTag.java
@@ -15,6 +15,8 @@ import java.net.URL;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Iterator;
+import java.util.Locale;
+
import javax.swing.text.html.HTML.Tag;
/**
@@ -116,7 +118,7 @@ public class HtmlTag {
if (s.length() == 0)
throw new IllegalArgumentException("Empty tag name");
tagName = s;
- tagType = tags.get(s.toUpperCase());
+ tagType = tags.get(s.toUpperCase(Locale.ENGLISH));
if (tagType == null) {
tagType = Type.UNKNOWN;
}
@@ -155,7 +157,7 @@ public class HtmlTag {
* Sets the value of a tag's attribute.
*/
public void setAttribute(String name, String value) {
- attributes.put(name.toLowerCase(), value);
+ attributes.put(name.toLowerCase(Locale.ENGLISH), value);
}
public StringBuffer getURLs() {

Back to the top