logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405569 - /logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEmbeddedManager.java
Date Sun, 04 Nov 2012 15:44:40 GMT
Author: ggregory
Date: Sun Nov  4 15:44:40 2012
New Revision: 1405569

URL: http://svn.apache.org/viewvc?rev=1405569&view=rev
Log:
Avoid problems on the Turkish Locale.

Modified:
    logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEmbeddedManager.java

Modified: logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEmbeddedManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEmbeddedManager.java?rev=1405569&r1=1405568&r2=1405569&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEmbeddedManager.java
(original)
+++ logging/log4j/log4j2/trunk/flume-ng/src/main/java/org/apache/logging/log4j/flume/appender/FlumeEmbeddedManager.java
Sun Nov  4 15:44:40 2012
@@ -26,6 +26,7 @@ import org.apache.logging.log4j.core.con
 import org.apache.logging.log4j.core.config.Property;
 
 import java.security.MessageDigest;
+import java.util.Locale;
 import java.util.Properties;
 
 /**
@@ -261,9 +262,9 @@ public class FlumeEmbeddedManager extend
                         throw new ConfigurationException(msg);
                     }
 
-                    String upperKey = key.toUpperCase();
+                    String upperKey = key.toUpperCase(Locale.ENGLISH);
 
-                    if (upperKey.startsWith(name.toUpperCase())) {
+                    if (upperKey.startsWith(name.toUpperCase(Locale.ENGLISH))) {
                         String msg = "Specification of the agent name is allowed in Flume
Appender configuration: " + key;
                         LOGGER.error(msg);
                         throw new ConfigurationException(msg);



Mime
View raw message