Author: sebb Date: Fri Mar 24 20:20:22 2017 New Revision: 1788538 URL: http://svn.apache.org/viewvc?rev=1788538&view=rev Log: Specify Locale for upcasing
Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java Modified: commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java?rev=1788538&r1=1788537&r2=1788538&view=diff ============================================================================== --- commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java (original) +++ commons/proper/net/trunk/src/main/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java Fri Mar 24 20:20:22 2017 @@ -19,6 +19,7 @@ package org.apache.commons.net.ftp.parse import java.io.File; import java.text.ParseException; +import java.util.Locale; import org.apache.commons.net.ftp.FTPClientConfig; import org.apache.commons.net.ftp.FTPFile; @@ -335,7 +336,7 @@ public class OS400FTPEntryParser extends // file. // Save files are a special type of files which are used // to save objects, e.g. for backups. - if (name != null && name.toUpperCase().endsWith(".SAVF")) + if (name != null && name.toUpperCase(Locale.ROOT).endsWith(".SAVF")) { mustScanForPathSeparator = false; type = FTPFile.FILE_TYPE;