logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405561 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
Date Sun, 04 Nov 2012 15:39:07 GMT
Author: ggregory
Date: Sun Nov  4 15:39:07 2012
New Revision: 1405561

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

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java?rev=1405561&r1=1405560&r2=1405561&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/appender/SocketAppender.java
Sun Nov  4 15:39:07 2012
@@ -16,6 +16,8 @@
  */
 package org.apache.logging.log4j.core.appender;
 
+import java.util.Locale;
+
 import org.apache.logging.log4j.core.Filter;
 import org.apache.logging.log4j.core.Layout;
 import org.apache.logging.log4j.core.config.plugins.Plugin;
@@ -87,7 +89,7 @@ public class SocketAppender extends Abst
     }
 
     protected static AbstractSocketManager createSocketManager(String protocol, String host,
int port, int delay) {
-        Protocol p = Protocol.valueOf(protocol.toUpperCase());
+        Protocol p = Protocol.valueOf(protocol.toUpperCase(Locale.ENGLISH));
         switch (p) {
             case TCP:
                 return TCPSocketManager.getSocketManager(host, port, delay);



Mime
View raw message