Summary: | malformed dates with current Catalan timedef files | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Robert Buj Gelonch <rbuj> | ||||
Component: | standards | Assignee: | freebsd-standards (Nobody) <standards> | ||||
Status: | In Progress --- | ||||||
Severity: | Affects Many People | CC: | emaste, standards | ||||
Priority: | --- | ||||||
Version: | CURRENT | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225855 | ||||||
Attachments: |
|
Description
Robert Buj Gelonch
2018-02-13 13:42:43 UTC
Created attachment 190742 [details]
Timedef settings for Catalan
I'm not sure if we should use GNU extensions (%-*) in format strings. Robert, would it be correct to use the format strings and months names from pre-CLDR versions of the data: https://svnweb.freebsd.org/base/head/share/timedef/ca_ES.ISO8859-1.src?revision=174990&view=markup&pathrev=289260 https://svnweb.freebsd.org/base/head/share/timedef/ca_ES.UTF-8.src?revision=174990&view=markup&pathrev=289260 And, if possible, please submit a change request for the CLDR data: http://cldr.unicode.org/index/bug-reports. (In reply to Yuri Pankov from comment #3) CLDR is up to date http://st.unicode.org/cldr-apps/v#/ca/Gregorian/9aa3b64aaf1346b (In reply to Yuri Pankov from comment #2) No. The date format improvements for Catalan are already collected in last CLDR, the genitive form of a month name in a date is obligatory in Catalan (e.g. 1 de gener de 2019) and word sequences such as d'abril, d'agost i d'octubre are shortened (e.g. 28 d'octubre de 2019). Other changes: short month names, short day names, am/pm, (example: fedora 28+gnome+glibc) Correct date formats in Czech, Catalan, Greek, and Lithuanian http://lingonborough.com/fedora-28-updates-for-czech-catalan-greek-and-lithuanian-users/ Thanks for the pointers. I have created review D17737 updating timedef for Catalan from latest CLDR data (34.0). Could you please take a look at it to make sure it's correct? 1. You should remove leading zeros in day and month numbers; change %e with %-e; %d with %-d; %m with %-m: # c_fmt %A, %-e %B de %Y a les %H:%M:%S # date_fmt (EEEE, d MMMM 'de' y 'a' 'les' H:mm:ss zzzz) %A, %-e %B de %Y a les %H:%M:%S %Z # x_fmt (d/M/yy) %-d/%-m/%y 2. You should change Long month names (without case ending) which are not equal to Long month names (as in a date): # Long month names (without case ending) gener febrer març abril maig juny juliol agost setembre octubre novembre desembre (In reply to Yuri Pankov from comment #6) 1. You should remove leading zeros in day and month numbers; change %e with %-e; %d with %-d; %m with %-m: # c_fmt %A, %-e %B de %Y a les %H:%M:%S # date_fmt (EEEE, d MMMM 'de' y 'a' 'les' H:mm:ss zzzz) %A, %-e %B de %Y a les %H:%M:%S %Z # x_fmt (d/M/yy) %-d/%-m/%y 2. You should change Long month names (without case ending) which are not equal to Long month names (as in a date): # Long month names (without case ending) gener febrer març abril maig juny juliol agost setembre octubre novembre desembre |