ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r387208 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
Date Mon, 20 Mar 2006 13:09:44 GMT
Author: stevel
Date: Mon Mar 20 05:09:11 2006
New Revision: 387208

URL: http://svn.apache.org/viewcvs?rev=387208&view=rev
Log:
Move to english locale when lower casing things, to avoid problems in other locales, like,
say, turkey.

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java?rev=387208&r1=387207&r2=387208&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/JDBCTask.java Mon Mar 20 05:09:11
2006
@@ -23,6 +23,8 @@
 import java.sql.SQLException;
 import java.util.Hashtable;
 import java.util.Properties;
+import java.util.Locale;
+
 import org.apache.tools.ant.AntClassLoader;
 import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.Project;
@@ -252,8 +254,7 @@
             }
 
             if (version != null) {
-                // XXX maybe better toLowerCase(Locale.US)
-                String theVersion = dmd.getDatabaseProductVersion().toLowerCase();
+                String theVersion = dmd.getDatabaseProductVersion().toLowerCase(Locale.ENGLISH);
 
                 log("Version = " + theVersion, Project.MSG_VERBOSE);
                 if (theVersion == null



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message