Commit 47837199 authored by zengtianlai3's avatar zengtianlai3

Merge branch 'm33' into 'master'

解决比较Locale相关的数据未指定适当的Locale

See merge request !43
parents 183eeb05 45dea0c8
......@@ -85,7 +85,7 @@ public class CommonUtil {
public static String getLibFilePathByFileName(String fileName) {
String os = System.getProperty("os.name");
String serverParentDirectory = getServerParentDirectory();
if (os.toLowerCase().startsWith("win")) {
if (os.toLowerCase(Locale.ENGLISH).startsWith("win")) {
return serverParentDirectory + File.separator + "lib" + File.separator + fileName + ".dll";
} else {
return serverParentDirectory + File.separator + "lib" + File.separator + fileName + ".so";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment