Date: Fri, 17 Jun 2016 23:11:20 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Eric van Gyzen <vangyzen@FreeBSD.org> Cc: freebsd-current@freebsd.org Subject: Re: Date formatting with en_US locale Message-ID: <20160617211119.52ksoandpjldkrfo@ivaldir.etoilebsd.net> In-Reply-To: <6d8f5e72-b3ab-9aa6-4fb6-1986b7b4f19b@FreeBSD.org> References: <499d8ddd-06c8-5184-68cb-4be19764b318@FreeBSD.org> <20160526144944.GD977@ivaldir.etoilebsd.net> <e096b663-ed6b-3211-4559-74ddcf54050a@bsd.com.br> <20160526151508.GE977@ivaldir.etoilebsd.net> <6d8f5e72-b3ab-9aa6-4fb6-1986b7b4f19b@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--dkuacoumu4qyjhv7 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 17, 2016 at 01:42:22PM -0500, Eric van Gyzen wrote: > On 05/26/16 10:15 AM, Baptiste Daroussin wrote: > > On Thu, May 26, 2016 at 11:55:08AM -0300, Otac=EDlio wrote: > >> Em 26/05/2016 11:49, Baptiste Daroussin escreveu: > >>> On Thu, May 26, 2016 at 09:44:25AM -0500, Eric van Gyzen wrote: > >>>> Baptiste and -current, > >>>> > >>>> I noticed two annoyances with date formatting on head, and I wonder = how > >>>> we can fix them. > >>>> > >>>> I have these settings: > >>>> > >>>> LC_ALL=3Den_US.ISO8859-1 > >>>> LANG=3Den_US.ISO8859-1 > >>>> > >>>> First, Thunderbird displays the date as, for example: > >>>> > >>>> 03/ 6/16 ... > >>>> > >>>> The leading space on the day (6) looks weird. I might even say it's > >>>> simply wrong. Zero-padding would better. (/No/ padding would be be= st, > >>>> but I don't think strftime supports that.) > >>>> > >>>> Second, date(1) no longer shows the day-of-week: > >>>> > >>>> $ date > >>>> March 26, 2016 at 09:21:55 AM CDT > >>>> > >>>> For many years, I have been typing "date" to see the day-of-week (and > >>>> other things). I like the new human-friendly format, but I miss the > >>>> day-of-week. > >>>> > >>>> Of course, I can fix these locally, but I wonder how we can fix them= for > >>>> everyone. I see that the formats come from CLDR. I also see that u= me@ > >>>> restored the day-of-week for ja_JP in r292512. Is this the best > >>>> approach, or should we try to get them changed upstream (CLDR)? > >>>> > >>>> Thanks for your input, > >>> I can hack cldr2def.pl to readd the week of day as it was before for = 11.0 still > >>> the best approach is to push the change upstream. > >>> > >>> I will have a look at the cldr2def.pl hack this week end. > >>> > >>> Best regards, > >>> Bapt > >> LANG=3Dpt_BR.UTF-8 > >> > >> MM_CHARSET=3DUTF-8 > >> > > By adding the hack I mean to do it for all locales not cherry picking >=20 > Thank you for fixing this! >=20 > Above, I mentioned two issues. The other one is, the date format for > en_US pads the month with a zero, but the day with a space. So, June 7 i= s: >=20 > 06/ 7/16 >=20 > That looks weird. It should pad both with zeros. I'd be happy to fix > it, but I don't see how: There isn't an "xformat" callback in the > cldr2def.pl script, and it's not clear how to add one. If you can > explain, I'll do it. If you can fix it, I'll be grateful. ;) >=20 > Eric This one I do not see how to fix, I'll dig into it but I promiss nothing Best regards, Bapt --dkuacoumu4qyjhv7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXZGdoAAoJEGOJi9zxtz5aIiwP/3yFnI1Nrqkb670+U17ROcWt 4N35jojkVcJhPNvIb7c9a3XWreAUMrNbHQXrkzD6m72E/Iyh+nFbtIELmeOJnr4v TcFqH7kMTFvw+jWDXXlvN/nQn0DRykSDcYkpRguvugO0NGX8orJD6AwGi9dCxWkh MWOubz18HcauqLE1UehcnFufdNkAvtupR1hGD1YIeWwqoGqvJDRraDvVhL7NMc2i efLGBtLJFWHQQ+eEL9RFEC/X4A/jE84S7szN2y24/PQ1PK5vrhglo7BmIqN1PccO bpzXJoQGHAs/IlIQuZUI2/kZ+hZU/TTCsFJZ/q3mLOxUEHBWZ/MWm3FGTTAnVqdu Zi2O8akBIcUs4QKlfGvK3b8NmcfG6FYfgnyecdCREN9XWCEINLCXh3TvNuv0YJhd slpb16heL02mDx22TzycxLaNZEH68DwGR/gP0QGvP7HFXAvU3Eu/R4lxiwwdk0/u F5375qtBm05KF2ZcvL2Uk1pHcASStgVW7pPIeaQtsR/trpe5kL6YTBs/ddBYYpUm ef2ztfXLYbt4z7FaRXzAS7M11lXTiK1jr5lKiH/ImuZbFY0k9nS0s89ikcALr7MI U4rhpGLrBK9wAbH0GR+qV14Ya3aMkxZeQq8b1sGcSyLtS9X1RKwJaMeDsMAK/K7i bOibkFDnsgQc+V1cq2HL =h6Bv -----END PGP SIGNATURE----- --dkuacoumu4qyjhv7--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160617211119.52ksoandpjldkrfo>