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

DateFormat.getDateTimeInstance gets inval. value in Full style in th_Th locale

XMLWordPrintable

    • generic
    • generic

      DateFormat.getDateTimeInstance gets invalid value when dateStyle/timeStyle is FULL style in th_Th locale.

      dateStyle/timeStyle is FULL/FULL
      ----------------------------------
      expected output:
      \u0e1e\u0e18 31 \u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21 2512 16:00:00
      (Wednesday 31 December 1967 16:00:00 - in en_US format)

      output:
      \u0e27\u0e31\u0e19\u0e1e\u0e38\u0e18\u0e17\u0e35\u0e48 31 \u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21 \u0e04.\u0e28. 2512, 16 \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 0 \u0e19\u0e32\u0e17\u0e35 00 \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35

      dateStyle/timeStyle is LONG/LONG
      ----------------------------------
      expected output:
      \u0e1e\u0e18 31 \u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21 2512 16:00:00

      Output:
      31 \u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21 2512, 16 \u0e19\u0e32\u0e2c\u0e34\u0e01\u0e32 0 \u0e19\u0e32\u0e17\u0e35

      (a sample input file and golden data file are enclosed)

            joconnersunw John Oconner (Inactive)
            mtiensunw Minchi Tien (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: