GregorianCalendar Locales issue

Calendar.getMinimalDaysInFirstWeek() for different locales returns different values
Because of that DatePicker's calculateCalendar() results in outOfBounds while iterating over weeks