Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8206089

Wrong first day of week of DatePicker for Bulgarian language

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      Windows 7/64, JRE 1.8.0 172

      A DESCRIPTION OF THE PROBLEM :
      javafx.scene.control.DatePicker shows wrong calendar when locale is Locale("bg", "BG")
      in Bulgaria we always use MONDAY as a first day of week not SUNDAY

      REGRESSION : Last worked in version 8u172

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Locale.setDefault(new Locale("bg", "BG"));
      final javafx.scene.control.DatePicker date = new DatePicker(LocalDate.now());



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      a brand new DatePicker with correct first day of week - Monday (Пн in Bulgarian)
      ACTUAL -
      a brand new DatePicker with WRONG first day of Week - Sunday (Нд in Bulgarian)

      ---------- BEGIN SOURCE ----------
      public class WrongBulgarianDatePicker extends Application {


          @Override
          public void start(Stage primaryStage) throws Exception {

              Locale.setDefault(new Locale("bg", "BG"));
              primaryStage.setTitle("Wrong calendar");

              StackPane root = new StackPane();
              root.getChildren().add(new DatePicker(LocalDate.now()));
              primaryStage.setScene(new Scene(root, 300, 200));
              primaryStage.show();
          }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Russian locale is with correct first day but this is unacceptable...

      FREQUENCY : always


            pmangal Priyanka Mangal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: