projects
/
debian
/
openrocket
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
create changelog entry
[debian/openrocket]
/
core
/
src
/
net
/
sf
/
openrocket
/
arch
/
SystemInfo.java
diff --git
a/core/src/net/sf/openrocket/arch/SystemInfo.java
b/core/src/net/sf/openrocket/arch/SystemInfo.java
index 7b526f2c484b78bb2c58e9f369b4e10eedaa32a2..316f313cc70f33d3edbb877900c8aaabd1c53901 100644
(file)
--- 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;
package net.sf.openrocket.arch;
import java.io.File;
+import java.util.Locale;
import net.sf.openrocket.util.BugException;
public class SystemInfo {
import net.sf.openrocket.util.BugException;
public class SystemInfo {
-
+
/**
* Enumeration of supported operating systems.
*
/**
* Enumeration of supported operating systems.
*
@@
-26,7
+27,7
@@
public class SystemInfo {
* @return the operating system of the current system.
*/
public static Platform getPlatform() {
* @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;
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.
/**
* Return the application data directory of this user. The location depends
* on the current platform.