[haiku-bugs] Re: [Haiku] #13606: Implement functions to get localized long/short dayofweek name and short month name in BDateFormat.

  • From: "akshay" <trac@xxxxxxxxxxxx>
  • Date: Mon, 17 Jul 2017 23:24:54 -0000

#13606: Implement functions to get localized long/short dayofweek name and short
month name in BDateFormat.
-------------------------------+----------------------------
   Reporter:  akshay           |      Owner:  pulkomandy
       Type:  bug              |     Status:  new
   Priority:  normal           |  Milestone:  Unscheduled
  Component:  Kits/Locale Kit  |    Version:  R1/Development
 Resolution:                   |   Keywords:
 Blocked By:                   |   Blocking:
Has a Patch:  1                |   Platform:  All
-------------------------------+----------------------------

Comment (by akshay):

 I wrote to the icu-support mailing list, they told the value of count is 8
 for weekdays because the first element is not used and they are using an
 offset of 1. It's been like that since the beginning of ICU to make it
 possible to use the weekday constants directly as offsets.

 initializer code (there is an offset of 1)

 http://bugs.icu-
 project.org/trac/browser/trunk/icu4c/source/i18n/dtfmtsym.cpp#L2377
 http://bugs.icu-
 project.org/trac/browser/trunk/icu4c/source/i18n/unicode/calendar.h#L255

--
Ticket URL: <https://dev.haiku-os.org/ticket/13606#comment:5>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: