From owner-freebsd-current@freebsd.org Fri Jun 17 21:11:24 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3E8B9A775E5 for ; Fri, 17 Jun 2016 21:11:24 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C40052CB9; Fri, 17 Jun 2016 21:11:23 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-wm0-x234.google.com with SMTP id f126so3590219wma.1; Fri, 17 Jun 2016 14:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=d8B8feR92TNR9A3G72Zv2Fjk2sFFs9RnBebdRJEXd2M=; b=j3bEViiV1h5bwmWfKkr2+XN6UMi/VqV+dyXuo8e7mhfNH7xTf3AUYIg8HhawBc03x8 WGeAupx9NzbsfSzWaMOs5kJIvaDzYHxXP5ib5gTWYIc6EnD8Ob35SZEhJcXMZ8GSUxNm V7CoWJ5NvK+s6rjZYw+1S/OIHl1ZQ0PIBlQ1+mzVAVDEimZggnj52pQ9EM8p4x8TyNXy f6t8hlr9UmGXHNQWWYDfWa8v59V8paw1jkXt/EwMbzswncYcAB+xDDEuUUObqODAvrpk 0cDqDPYKEW7qCgNmqaCIhn3cwIlTlifIdC3hS4JVOiGwn+C7Cm+F3UCFG9d0RLxb9X7j jUhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=d8B8feR92TNR9A3G72Zv2Fjk2sFFs9RnBebdRJEXd2M=; b=AIfqjnqc+KgSaWiZzLe3eTjPShfQU50E1NOwqJgPqLgmCfMHKPFpJA+AzNVv7uqIbM qbiltAmdAaQRzrWddEbzYqZWJ2XhQLDil3kIW9O268zn587p/Hip9JaFMOSCFZmZUA2U h7uaQI1J5Vc94LhePXXELN2aTylDwpMD7zP9lLFxkw4yRGgeqtVod5GfOPbdlNB22Pd4 beB+bDLQQPIyj9DWRdmd+2VlShRBwFUEPj4D9OJWbxiSCg6gjDaAcaNhUC7tcrklgeoG VzZfvm7v49HTvZaDhI4NKrDIyRGcioUPpLpZT4NcAUhO/Kk16pACI2QHQYLEjgDzSfQc P/8Q== X-Gm-Message-State: ALyK8tKeM0n7O0tRhJD/gF9OsZ3poV1769QThv6azwWw1XQpXbZwY1KX/MrWaK4t1tmY9g== X-Received: by 10.28.137.67 with SMTP id l64mr367903wmd.51.1466197882025; Fri, 17 Jun 2016 14:11:22 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id m5sm481530wmm.10.2016.06.17.14.11.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Jun 2016 14:11:21 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 17 Jun 2016 23:11:20 +0200 From: Baptiste Daroussin To: Eric van Gyzen Cc: freebsd-current@freebsd.org Subject: Re: Date formatting with en_US locale Message-ID: <20160617211119.52ksoandpjldkrfo@ivaldir.etoilebsd.net> References: <499d8ddd-06c8-5184-68cb-4be19764b318@FreeBSD.org> <20160526144944.GD977@ivaldir.etoilebsd.net> <20160526151508.GE977@ivaldir.etoilebsd.net> <6d8f5e72-b3ab-9aa6-4fb6-1986b7b4f19b@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="dkuacoumu4qyjhv7" Content-Disposition: inline In-Reply-To: <6d8f5e72-b3ab-9aa6-4fb6-1986b7b4f19b@FreeBSD.org> User-Agent: Mutt/1.6.1-neo (2016-06-11) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2016 21:11:24 -0000 --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--