Date: Tue, 13 Feb 2018 13:42:43 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 225864] malformed dates with current Catalan timedef files Message-ID: <bug-225864-15@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225864 Bug ID: 225864 Summary: malformed dates with current Catalan timedef files Product: Base System Version: 11.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: standards Assignee: freebsd-standards@FreeBSD.org Reporter: rbuj@fedoraproject.org We get malformed dates with current Catalan timedef files. 1. date_fmt should be "%A, %e %B de %Y, %X %Z", and not "%A, %e de %B de %Y, %X %Z". 2. "Long month names (without case ending)" it should not be equal to "Long month names (as in a date)". "Long month names (without case ending)" is used with %E* %O* (see man strftime). ------------ Desired output after modifying /usr/src/share/timedef/ca_IT.UTF-8.src (also applicable to ca_IT.ISO8859-15.src) # cd /usr/src/share/timedef && make && make install # python3.6 Python 3.6.4 (default, Jan 2 2018, 01:25:35) [GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] on freebsd11 Type "help", "copyright", "credits" or "license" for more information. >>> from time import gmtime, strftime, mktime >>> import locale >>> locale.setlocale(locale.LC_TIME, "ca_ES.UTF-8") 'ca_ES.UTF-8' >>> strftime("%A, %d %B del %Y a les %H:%M:%S") 'dimarts, 13 de febrer del 2018 a les 15:21:12' >>> strftime("%OB") 'febrer' >>> strftime("%B") 'de febrer' >>> # LANG=ca_ES.UTF-8 date dimarts, 13 de febrer de 2018, 15:33:20 CET # cat /usr/src/share/timedef/ca_IT.UTF-8.src # Warning: Do not edit. This file is automatically generated from the # tools in /usr/src/tools/tools/locale. The data is obtained from the # CLDR project, obtained from http://cldr.unicode.org/ # ----------------------------------------------------------------------------- # # Short month names gen. febr. març abr. maig juny jul. ag. set. oct. nov. des. # # Long month names (as in a date) de gener de febrer de març d’abril de maig de juny de juliol d’agost de setembre d’octubre de novembre de desembre # # Short weekday names dg. dl. dt. dc. dj. dv. ds. # # Long weekday names diumenge dilluns dimarts dimecres dijous divendres dissabte # # X_fmt %H:%M:%S # # x_fmt %d/%m/%Y # # c_fmt %a %e %b %X %Y # # AM/PM a. m. p. m. # # date_fmt %A, %e %B de %Y, %X %Z # # Long month names (without case ending) gener febrer març abril maig juny juliol agost setembre octubre novembre desembre # # md_order dm # # ampm_fmt %I:%M:%S %p # EOF -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225864-15>
