From owner-freebsd-current@freebsd.org Wed Aug 3 23:24:09 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 6CD78BAEF94 for ; Wed, 3 Aug 2016 23:24:09 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 28ABA133D for ; Wed, 3 Aug 2016 23:24:08 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from amavis-ori.ijs.si (localhost [IPv6:::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ijs.si (Postfix) with ESMTPS id 3s4TfX5pvWzYx for ; Thu, 4 Aug 2016 01:24:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:organization:subject:subject:from:from :date:date:content-transfer-encoding:content-type:content-type :mime-version:received:received:received:received; s=jakla4; t= 1470266641; x=1472858642; bh=/wVndb1BzKWoo5ohZ/ZZQguvT2V8ebfGZRR TVylwqLQ=; b=cvN0SHk5umD0y0pWXlPv6JoJDVwk7jL+Rd13loHIHo6XVE8GLug n1m4rp0MwGk7jQPfFvjv/0aJRu9byIu0OY+SR5aY1oN9FUQ2LF/oz7DeKacEwx4i 0GVl3ABcDaueMCSQBLec3LWa/bv6xksYTGvJJ+pJ4uoLKkjxes0GlzEY= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10026) with LMTP id EAuN4ILBp4jc for ; Thu, 4 Aug 2016 01:24:01 +0200 (CEST) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP id 3s4TfT6PpPzYw for ; Thu, 4 Aug 2016 01:24:01 +0200 (CEST) Received: from nabiralnik.ijs.si (nabiralnik.ijs.si [IPv6:2001:1470:ff80::80:16]) by mildred.ijs.si (Postfix) with ESMTP id 3s4TfT2TCxz151 for ; Thu, 4 Aug 2016 01:24:01 +0200 (CEST) Received: from sleepy.ijs.si (2001:1470:ff80:e001::1:1) by webmail.ijs.si with HTTP (HTTP/1.1 POST); Thu, 04 Aug 2016 01:24:01 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 04 Aug 2016 01:24:01 +0200 From: Mark Martinec To: freebsd-current@freebsd.org Subject: date(1) default format changed between 10.3 and 11.0-BETA3 Organization: Jozef Stefan Institute Message-ID: X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.2.0 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: Wed, 03 Aug 2016 23:24:09 -0000 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 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