## modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TextBinding.java

Print this page

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

    @@ -23,10 +23,11 @@
      * questions.
      */

     package com.sun.javafx.scene.control.behavior;

    +import java.util.Locale;
     import java.util.StringTokenizer;

     import javafx.scene.input.KeyCode;

     /**

    @@ -329,11 +330,11 @@
             while (!parseFail && tokenizer.hasMoreTokens()) {
                 String token = tokenizer.nextToken();
                 if (!tokenizer.hasMoreTokens()) {
                     text = token;
                 } else {
    -                KeyCode code = KeyCode.getKeyCode(token.toUpperCase());
    +                KeyCode code = KeyCode.getKeyCode(token.toUpperCase(Locale.ROOT));
                     if (code != null) {
                         switch (code) {
                           case CONTROL:
                             controlDown = true;
                             break;