From owner-freebsd-standards@freebsd.org Fri Aug 5 14:41:58 2016 Return-Path: Delivered-To: freebsd-standards@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 4EF47BAF208 for ; Fri, 5 Aug 2016 14:41:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 3DC1813AD for ; Fri, 5 Aug 2016 14:41:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u75EfvtI073775 for ; Fri, 5 Aug 2016 14:41:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-standards@FreeBSD.org Subject: [Bug 211598] date(1) default format in en_EN locale breaks compatibility with 10.3 and violates POSIX Date: Fri, 05 Aug 2016 14:41:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: 11.0-BETA3 X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: Mark.Martinec@ijs.si X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2016 14:41:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211598 Bug ID: 211598 Summary: date(1) default format in en_EN locale breaks compatibility with 10.3 and violates POSIX Product: Base System Version: 11.0-BETA3 Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: standards Assignee: freebsd-standards@FreeBSD.org Reporter: Mark.Martinec@ijs.si Created attachment 173319 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D173319&action= =3Dedit date(1) compatibility matrix =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (1) 11.0-BETA3 breaks compatibility with 10.3 and other OS, and violates posix [1](see below, and item (3)) $ LC_ALL=3Den_US.UTF-8 date FreeBSD 11.0-BETA3 : (wrong) Friday, August 5, 2016 at 03:20:25 PM CEST FreeBSD 10.3-RELEASE-p6 : (ok) Fri Aug 5 15:15:11 CEST 2016 OSX version 10.9.5 : (ok) Fri Aug 5 14:57:14 CEST 2016 Fedora Linux 4.6.4-301.fc24.x86_64 : (ok) Fri Aug 5 15:10:40 CEST 2016 Debian 8.0 / Linux 4.4.16-v7+ : (ok) Fri Aug 5 15:25:49 CEST 2016 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (2) missing day of the week name in es_ES locale $ LC_ALL=3Des_ES.UTF-8 date FreeBSD 11.0-BETA3 : 5 de agosto de 2016, 15:20:25 CEST FreeBSD 10.3-RELEASE-p6 : viernes, 5 de agosto de 2016, 15:15:11 CEST =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (3) 11.0 and 10.3 violate Posix [1](see below), which states: When no formatting operand is specified, the output in the POSIX locale shall be equivalent to specifying: date "+%a %b %e %H:%M:%S %Z %Y" FreeBSD 11.0-BETA3 : $ LC_ALL=3Dfr_FR.UTF-8 date vendredi 5 ao=C3=BBt 2016 15:20:25 CEST $ LC_ALL=3Dfr_FR.UTF-8 date '+%a %b %e %H:%M:%S %Z %Y' ven. ao=C3=BBt 5 15:20:25 CEST 2016 FreeBSD 10.3-RELEASE-p6 : $ LC_ALL=3Dfr_FR.UTF-8 date ven 5 ao=C3=BB 2016 15:15:11 CEST $ LC_ALL=3Dfr_FR.UTF-8 date '+%a %b %e %H:%M:%S %Z %Y' ven ao=C3=BB 5 15:15:11 CEST 2016 OSX version 10.9.5 is similar to FreeBSD 10.3. Fedora Linux 4.6.4-301.fc24.x86_64 does it right for most (but not all) locales: $ LC_ALL=3Des_ES.UTF-8 date vie ago 5 15:10:40 CEST 2016 $ LC_ALL=3Des_ES.UTF-8 date '+%a %b %e %H:%M:%S %Z %Y' vie ago 5 15:10:40 CEST 2016 Debian 8.0 / Linux 4.4.16-v7+ does it right for the locales that I have tested (but possibly same as Fedora): $ LC_ALL=3Des_ES.UTF-8 date vie ago 5 15:25:49 CEST 2016 $ LC_ALL=3Des_ES.UTF-8 date +%a %b %e %H:%M:%S %Z %Y vie ago 5 15:25:49 CEST 2016 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [1] http://pubs.opengroup.org/onlinepubs/9699919799/ The Open Group Base Specifications Issue 7 IEEE Std 1003.1, 2013 Edition When no formatting operand is specified, the output in the POSIX locale shall be equivalent to specifying: date "+%a %b %e %H:%M:%S %Z %Y" %a Locale's abbreviated weekday name. %b Locale's abbreviated month name. %e Day of the month as a decimal number [1,31] in a two-digit field with leading character fill. %Z Timezone name, or no characters if no timezone is determinable. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Attached is the full report. --=20 You are receiving this mail because: You are the assignee for the bug.=