summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/IOUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-03-30 06:08:14 +0100
committerSven Gothel <[email protected]>2019-03-30 06:08:14 +0100
commitecb65c39a6902158ed824348a23dbbcb42a85f01 (patch)
tree6b3fe22223a96cc6fed7c894e5d9f816dece3fa0 /src/java/com/jogamp/common/util/IOUtil.java
parent03bcef96e3105923ccc8c827b70b97ff0aa3464c (diff)
Bug 1366 - Use String.format((Locale)null, "..." ..) avoiding Locale output for System related Operations
Diffstat (limited to 'src/java/com/jogamp/common/util/IOUtil.java')
-rw-r--r--src/java/com/jogamp/common/util/IOUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/com/jogamp/common/util/IOUtil.java b/src/java/com/jogamp/common/util/IOUtil.java
index 0381ebc..066500f 100644
--- a/src/java/com/jogamp/common/util/IOUtil.java
+++ b/src/java/com/jogamp/common/util/IOUtil.java
@@ -50,6 +50,7 @@ import java.net.URLConnection;
import java.nio.ByteBuffer;
import java.security.AccessController;
import java.security.PrivilegedAction;
+import java.util.Locale;
import java.util.regex.Pattern;
import jogamp.common.Debug;
@@ -1162,7 +1163,7 @@ public class IOUtil {
File tmpBaseDir = null;
if(null != testDirImpl(tmpRoot, true /* create */, executable, dbgMsg)) { // check tmpRoot first
for(int i = 0; null == tmpBaseDir && i<=9999; i++) {
- final String tmpDirSuffix = String.format("_%04d", i); // 4 digits for iteration
+ final String tmpDirSuffix = String.format((Locale)null, "_%04d", i); // 4 digits for iteration
tmpBaseDir = testDirImpl(new File(tmpRoot, tmpSubDirPrefix+tmpDirSuffix), true /* create */, executable, dbgMsg);
}
}