jdk/src/share/classes/sun/security/krb5/Credentials.java
changeset 6122 16fa7ed7ff1b
parent 5974 f0531b7dfebe
child 7183 d8ccc1c73358
--- a/jdk/src/share/classes/sun/security/krb5/Credentials.java	Fri Jul 23 17:41:47 2010 +0100
+++ b/jdk/src/share/classes/sun/security/krb5/Credentials.java	Sat Jul 24 22:59:41 2010 +0800
@@ -36,6 +36,7 @@
 import sun.security.krb5.internal.crypto.EType;
 import java.io.IOException;
 import java.util.Date;
+import java.util.Locale;
 import java.net.InetAddress;
 
 /**
@@ -287,7 +288,7 @@
             // The default ticket cache on Windows is not a file.
             String os = java.security.AccessController.doPrivileged(
                         new sun.security.action.GetPropertyAction("os.name"));
-            if (os.toUpperCase().startsWith("WINDOWS")) {
+            if (os.toUpperCase(Locale.ENGLISH).startsWith("WINDOWS")) {
                 Credentials creds = acquireDefaultCreds();
                 if (creds == null) {
                     if (DEBUG) {