-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8u172
-
x86_64
-
windows_7
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
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