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

The week day for Saturday and the first week day in Romania locale are incorrect

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      x86
    • OS:
      windows_xp

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.5.0_07"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
        Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows XP [Version 5.1.2600]

        A DESCRIPTION OF THE PROBLEM :
        The week day name for Saturday in Romanian, as returned by new DateFormatSymbols( new Locale( "ro" ) ).getWeekdays( )[Calendar.SATURDAY] is Sîmb?t?. The correct name is Sâmb?t?. The error is in the second character, after the capital 'S': it should be â (\u00e2) instead of î (\u00ee). This change was introduced in Romania around year 1995.

        Also, the first day of the week, as returned by Calendar.getInstance( new Locale( "ro" ) ).getFirstDayOfWeek( ) is SUNDAY. The correct one is MONDAY.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Use the 2 scenarios described above and check the returned values.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        The expected weekday name for saturday should be Sâmb?t?.
        The expected first day of week should be Calendar.MONDAY.
        ACTUAL -
        The returned weekday name for saturday was Sîmb?t?.
        The returned first day of week was Calendar.SUNDAY.

        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        (none)

        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        System.out.print( new DateFormatSymbols( new Locale( "ro" ) ).getWeekdays( )[Calendar.SATURDAY] );
        System.out.print( Calendar.getInstance( new Locale( "ro" ) ).getFirstDayOfWeek( ) );
        ---------- END SOURCE ----------

        CUSTOMER SUBMITTED WORKAROUND :
        (none)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jtusla Jiri Tusla (Inactive)
                  Reporter:
                  ndcosta Nelson Dcosta (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: