From owner-freebsd-current@freebsd.org Thu Aug 4 02:32:36 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 7993FBADD1D for ; Thu, 4 Aug 2016 02:32:36 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FEDE18FE for ; Thu, 4 Aug 2016 02:32:35 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-226-8.lns20.per1.internode.on.net [121.45.226.8]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id u742WUia038929 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 3 Aug 2016 19:32:32 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: date(1) default format changed between 10.3 and 11.0-BETA3 To: Mark Martinec , freebsd-current@freebsd.org References: From: Julian Elischer Message-ID: <3629a441-ee6d-2407-fa13-5ebd8db8d802@freebsd.org> Date: Thu, 4 Aug 2016 10:32:24 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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, 04 Aug 2016 02:32:36 -0000 On 4/08/2016 7:24 AM, Mark Martinec wrote: > Is it normal/expected/documented that the date(1) command in 11.0 > now produces a timestamp in substantially different format > in an "en_US.UTF-8" locale (long names, commas, 12 vs. 24h hour time): > > Thursday, August 4, 2016 at 12:50:43 AM CEST > vs: > Thu Aug 4 00:52:29 CEST 2016 > one of those is a bug. the formats are defined in posix I believe. > > Setting LC_TIME does not help: > > $ LC_TIME="C" date > Thursday, August 4, 2016 at 01:13:37 AM CEST > > although LC_ALL="C" _does_ help. > > > This is funny too, especially regarding commas: > $ LC_ALL="en_GB.UTF-8" date > Thursday 4 August 2016 at 01:16:45 CEST > $ LC_ALL="en_US.UTF-8" date > Thursday, August 4, 2016 at 01:16:54 AM CEST > > > The date(1) man page states: > The date utility is expected to be compatible with IEEE Std 1003.2 > (“POSIX.2”). > What does POSIX.2 say about date(1) following a locale? > > > > ====== > 11.0-BETA3: > > $ date > Thursday, August 4, 2016 at 12:50:43 AM CEST > > $ uname -a > FreeBSD xxx.ijs.si 11.0-BETA3 FreeBSD 11.0-BETA3 #0 r303469: Fri Jul > 29 02:27:28 UTC 2016 > root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > $ locale > LANG= > LC_CTYPE="en_US.UTF-8" > LC_COLLATE="en_US.UTF-8" > LC_TIME="en_US.UTF-8" > LC_NUMERIC="en_US.UTF-8" > LC_MONETARY="en_US.UTF-8" > LC_MESSAGES="en_US.UTF-8" > LC_ALL=en_US.UTF-8 > > ====== > 10.3-RELEASE-p6 : > > $ date > Thu Aug 4 00:52:29 CEST 2016 > > $ freebsd-version > 10.3-RELEASE-p6 > > $ uname -a > FreeBSD yyy.ijs.si 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat > May 28 12:23:44 UTC 2016 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > $ locale > LANG= > LC_CTYPE="en_US.UTF-8" > LC_COLLATE="en_US.UTF-8" > LC_TIME="en_US.UTF-8" > LC_NUMERIC="en_US.UTF-8" > LC_MONETARY="en_US.UTF-8" > LC_MESSAGES="en_US.UTF-8" > LC_ALL=en_US.UTF-8 > > > > Mark > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" > >