From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127688 invoked by alias); 18 Mar 2019 05:53:19 -0000 Mailing-List: contact libc-locales-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-locales-owner@sourceware.org Received: (qmail 127597 invoked by uid 48); 18 Mar 2019 05:53:16 -0000 From: "tamuki at linet dot gr.jp" To: libc-locales@sourceware.org Subject: [Bug localedata/24162] ja_JP LC_TIME: era offset for Taisho GanNen and BC direction Date: Mon, 18 Mar 2019 05:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: 2.29 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: tamuki at linet dot gr.jp X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2019-q1/txt/msg00088.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24162 --- Comment #9 from TAMUKI Shoichi --- Hello Morimitsu-san, (In reply to junji morimitsu from comment #6) > Very good example! Thank you. The offset counts are wrong at '-' direct= ion. > This shows there is a bug in localedef or strftime() using the 'direction= '. > 'direction' is the 'era' direction, not 'offset' direction. > 'offset' count (%Ey) should be increasing from 'start_date' to the 'end_d= ate'. > Please check the LC_TIME definition about this. Regarding BC direction, I still think there is no need to change this. I checked the LC_TIME definition about this: [LC_TIME Category for the Locale Definition Source File Format] https://sites.ualberta.ca/dept/chemeng/AIX-43/share/man/info/C/a_doc_lib/fi= les/aixfiles/LC_TIME.htm According to the reference above, there is the following description: | era Defines how the years are counted and displayed for each era | (or emperor's reign) in a locale, corresponding to the %E | field descriptor modifier. For each era, there must be one | string in the following format: |=20 | direction:offset:start_date:end_date:name:format |=20 | The variables for the era-string format are defined as follows: |=20 | [...] | end_date Specifies the ending date of the era in the | same form used for the start_date variable or | one of the two special values -* or +*. A -* | value indicates that the ending date of the | era extends backward to the beginning of time. | A +* value indicates that the ending date of | the era extends forward to the end of time. | Therefore, the ending date can be | chronologically before or after the starting | date of the era. For example, the strings for | the Christian eras AD and BC would be entered | as follows: |=20 | +:0:0000/01/01:+*:AD:%o %N | +:1:-0001/12/31:-*:BC:%o %N | [...] The following series of references have similar descriptions: [=E3=83=AD=E3=82=B1=E3=83=BC=E3=83=AB=E3=83=BB=E3=83=95=E3=82=A1=E3=82=A4= =E3=83=AB=E3=81=AE=E5=BD=A2=E5=BC=8F] http://odl.sysworks.biz/disk$axpdocjun002/japanese/jovms721/xpg4/64940003.h= tm [Locale - The Open Group Library] http://pubs.opengroup.org/onlinepubs/7908799/xbd/locale.html [Compaq C Run-Time Library Utilities Reference Manual] http://h30266.www3.hpe.com/odl/axpos/opsys/vmsos84/6494/6494pro_003.html Regards, TAMUKI Shoichi --=20 You are receiving this mail because: You are on the CC list for the bug.