logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405572 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
Date Sun, 04 Nov 2012 15:46:54 GMT
Author: ggregory
Date: Sun Nov  4 15:46:53 2012
New Revision: 1405572

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

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java?rev=1405572&r1=1405571&r2=1405572&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/OptionConverter.java
Sun Nov  4 15:46:53 2012
@@ -19,6 +19,7 @@ package org.apache.logging.log4j.core.he
 import org.apache.logging.log4j.Logger;
 import org.apache.logging.log4j.status.StatusLogger;
 
+import java.util.Locale;
 import java.util.Properties;
 
 /**
@@ -172,7 +173,7 @@ public final class OptionConverter {
             return defaultValue;
         }
 
-        String s = value.trim().toUpperCase();
+        String s = value.trim().toUpperCase(Locale.ENGLISH);
         long multiplier = 1;
         int index;
 



Mime
View raw message