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

Print this page

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

    *** 24,33 ****
    --- 24,34 ----
       */
      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,73 ****
                         type = userPlatform;
                      return type;
                  }

                  String osName = System.getProperty("os.name");
    !             String osNameLowerCase = osName.toLowerCase();
                  if (osNameLowerCase.startsWith("mac") || osNameLowerCase.startsWith("darwin")) {
                      type = MAC;
                  } else if (osNameLowerCase.startsWith("wind")) {
                      type = WINDOWS;
                  } else if (osNameLowerCase.startsWith("linux")) {
    --- 64,74 ----
                         type = userPlatform;
                      return type;
                  }

                  String osName = System.getProperty("os.name");
    !             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")) {