From owner-freebsd-current@freebsd.org Thu May 26 14:55:25 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 7C0D2B4B90B for ; Thu, 26 May 2016 14:55:25 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-qk0-x233.google.com (mail-qk0-x233.google.com [IPv6:2607:f8b0:400d:c09::233]) (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 413E41A8F for ; Thu, 26 May 2016 14:55:25 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-qk0-x233.google.com with SMTP id y126so59593342qke.1 for ; Thu, 26 May 2016 07:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=+REjxmKKqUsTb+boGqLr1Wtf+Z5c0NlAeSp514WvZk8=; b=CQAfNDo2VOk431XNhKyRL+rbZ81vTP/psYiQLTdKIm3vnglYI+VchHtQlaUmCnohhJ I89ybzmb2p5cLaq00nswRwzS09/z3o8bje/XHUFyyTUFF239VO8QySkma0sI1vJnDrLg loIQ0+404neQzrByYDQdclWOEJR5ciOc0Vsxs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=+REjxmKKqUsTb+boGqLr1Wtf+Z5c0NlAeSp514WvZk8=; b=QjGHrFB243X3HDrXOYxHULuqfokQ8nFfgIl7Z2bFzyace+AScPcOikOY976lcS3hfx yd6Es3RpFRwDOkVBx1/ruNQymOB80+RzTZWFcsuMMB/4L1hCTdBmrVg4V3TFItzJ+327 nGmUpxyYQt8jaKlE5mLvXBUGFogvAjE9JX8drL0sZdi3kcpRbNbCl2GWYWXTFPkMCmpI xgO28oFSjej2vI8FjnC7H9o66k7W/zDWBOlaN+4MKA3d5agxszIXR8FdQuPGiarHgKJn CknOlwdhf6UCpVMjvJ6tVj47tCh6YKFn7FOcZqoZyxwPA8fXVUEL13FZgKbOvgiV6p2W F3rA== X-Gm-Message-State: ALyK8tJyPZfy0OhGuLEaofGJDfOw0zGRw6YORWxGxeUn0mgCjJDGhDjGzTQSKX6PmY8miw== X-Received: by 10.55.212.221 with SMTP id s90mr8646206qks.99.1464274524275; Thu, 26 May 2016 07:55:24 -0700 (PDT) Received: from [10.8.3.227] ([177.20.130.8]) by smtp.googlemail.com with ESMTPSA id b189sm3934818qkf.10.2016.05.26.07.55.22 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 May 2016 07:55:23 -0700 (PDT) Subject: Re: Date formatting with en_US locale To: freebsd-current@freebsd.org References: <499d8ddd-06c8-5184-68cb-4be19764b318@FreeBSD.org> <20160526144944.GD977@ivaldir.etoilebsd.net> From: =?UTF-8?B?T3RhY8OtbGlv?= Message-ID: Date: Thu, 26 May 2016 11:55:08 -0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160526144944.GD977@ivaldir.etoilebsd.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 26 May 2016 14:55:25 -0000 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=en_US.ISO8859-1 >> LANG=en_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 best, >> 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 ume@ >> 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=pt_BR.UTF-8 MM_CHARSET=UTF-8 also no longer shows the day-of-week [ota@nostromo /usr/home/ota]$ date 26 de maio de 2016 11:54:44 BRT