## modules/graphics/src/main/java/com/sun/glass/ui/Platform.java

Print this page

    rev 4839 : RT-2529: Locale specific runtime errors (Turkish)

    @@ -24,10 +24,11 @@
      */
     package com.sun.glass.ui;

     import java.security.AccessController;
     import java.security.PrivilegedAction;
    +import java.util.Locale;

     final class Platform {

         public static final String MAC = "Mac";
         public static final String WINDOWS = "Win";

    @@ -63,11 +64,11 @@
                        type = userPlatform;
                     return type;
                 }

                 String osName = System.getProperty("os.name");
    -            String osNameLowerCase = osName.toLowerCase();
    +            String osNameLowerCase = osName.toLowerCase(Locale.ROOT);
                 if (osNameLowerCase.startsWith("mac") || osNameLowerCase.startsWith("darwin")) {
                     type = MAC;
                 } else if (osNameLowerCase.startsWith("wind")) {
                     type = WINDOWS;
                 } else if (osNameLowerCase.startsWith("linux")) {