X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=core%2Fsrc%2Fnet%2Fsf%2Fopenrocket%2Farch%2FSystemInfo.java;h=316f313cc70f33d3edbb877900c8aaabd1c53901;hb=4095cb0dd61a75b7b6b0bd811f8e803af5b27919;hp=7b526f2c484b78bb2c58e9f369b4e10eedaa32a2;hpb=8654c7d5a9d56274a296500d40c7f74229cdf6f1;p=debian%2Fopenrocket diff --git a/core/src/net/sf/openrocket/arch/SystemInfo.java b/core/src/net/sf/openrocket/arch/SystemInfo.java index 7b526f2c..316f313c 100644 --- a/core/src/net/sf/openrocket/arch/SystemInfo.java +++ b/core/src/net/sf/openrocket/arch/SystemInfo.java @@ -1,12 +1,13 @@ package net.sf.openrocket.arch; import java.io.File; +import java.util.Locale; import net.sf.openrocket.util.BugException; public class SystemInfo { - + /** * Enumeration of supported operating systems. * @@ -26,7 +27,7 @@ public class SystemInfo { * @return the operating system of the current system. */ public static Platform getPlatform() { - String os = System.getProperty("os.name").toLowerCase(); + String os = System.getProperty("os.name").toLowerCase(Locale.ENGLISH); if (os.indexOf("win") >= 0) { return Platform.WINDOWS; @@ -41,8 +42,8 @@ public class SystemInfo { } - - + + /** * Return the application data directory of this user. The location depends * on the current platform.