summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalvador Zalapa2013-01-09 12:35:41 (EST)
committerNick Sandonato2013-01-09 13:55:36 (EST)
commit35ab2fbaad6f25bf121345dbf475be5d0ccaaea6 (patch)
tree0602292b73f5928b34fd31573f5c8ec7bbd6a63d
parente5568e88e20746a6b3433bd700cbd887e5b3ba31 (diff)
downloadwebtools.sourceediting-35ab2fbaad6f25bf121345dbf475be5d0ccaaea6.zip
webtools.sourceediting-35ab2fbaad6f25bf121345dbf475be5d0ccaaea6.tar.gz
webtools.sourceediting-35ab2fbaad6f25bf121345dbf475be5d0ccaaea6.tar.bz2
[Bug397779] - Tag name generation does not recognize lowercase tags in Turkish locale
-rw-r--r--bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/XMLGeneratorImpl.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/XMLGeneratorImpl.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/XMLGeneratorImpl.java
index 17c7eb9..75c61b7 100644
--- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/XMLGeneratorImpl.java
+++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/document/XMLGeneratorImpl.java
@@ -14,6 +14,8 @@ package org.eclipse.wst.xml.core.internal.document;
+import java.util.Locale;
+
import org.eclipse.wst.xml.core.internal.commentelement.impl.CommentElementRegistry;
import org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclaration;
import org.eclipse.wst.xml.core.internal.contentmodel.CMDataType;
@@ -606,7 +608,8 @@ public class XMLGeneratorImpl implements ISourceGenerator {
newName = tagName.toUpperCase();
break;
case DocumentTypeAdapter.LOWER_CASE :
- newName = tagName.toLowerCase();
+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=397779#c0
+ newName = tagName.toLowerCase(Locale.ENGLISH);
break;
}
if (newName != tagName) {