GNU bug report logs - #23379
[PATCH] tests/misc/date.pl: uppercase/lowercase test

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Jakub Martisko <jamartis@HIDDEN>; Keywords: patch; dated Tue, 26 Apr 2016 15:33:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 23379 <at> debbugs.gnu.org:


Received: (at 23379) by debbugs.gnu.org; 26 Apr 2016 16:04:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 26 12:04:15 2016
Received: from localhost ([127.0.0.1]:48962 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1av5TD-0001Q9-LX
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2016 12:04:15 -0400
Received: from mail.magicbluesmoke.com ([82.195.144.49]:35012)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <P@HIDDEN>) id 1av5TB-0001Px-Kk
 for 23379 <at> debbugs.gnu.org; Tue, 26 Apr 2016 12:04:14 -0400
Received: from [192.168.1.80] (unknown [109.79.98.168])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by mail.magicbluesmoke.com (Postfix) with ESMTPSA id 7BFFD219;
 Tue, 26 Apr 2016 17:04:12 +0100 (IST)
Subject: Re: bug#23379: [PATCH] tests/misc/date.pl: uppercase/lowercase test
To: Jakub Martisko <jamartis@HIDDEN>, 23379 <at> debbugs.gnu.org
References: <571F1A72.4020305@HIDDEN>
From: =?UTF-8?Q?P=c3=a1draig_Brady?= <P@HIDDEN>
Message-ID: <571F917B.3070708@HIDDEN>
Date: Tue, 26 Apr 2016 17:04:11 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <571F1A72.4020305@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 23379
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

On 26/04/16 08:36, Jakub Martisko wrote:
> Added some basic test for date lowercase/uppercase output. Depends on
> https://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00015.html

Thanks I responded on that thread.
Re the patch here, we'd need doc updates for date.c and coreutils.texi
But all this would be gated on acceptance for glibc's strtime implementation,
as it would be best to avoid divergence on its interface.

thanks,
Pádraig





Information forwarded to bug-coreutils@HIDDEN:
bug#23379; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Apr 2016 15:32:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 26 11:32:18 2016
Received: from localhost ([127.0.0.1]:48929 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1av4yI-0000Rx-Am
	for submit <at> debbugs.gnu.org; Tue, 26 Apr 2016 11:32:18 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34935)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jamartis@HIDDEN>) id 1auxXv-0002Dj-62
 for submit <at> debbugs.gnu.org; Tue, 26 Apr 2016 03:36:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jamartis@HIDDEN>) id 1auxXo-0000Ka-TX
 for submit <at> debbugs.gnu.org; Tue, 26 Apr 2016 03:36:29 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:32770)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jamartis@HIDDEN>) id 1auxXo-0000KS-Qc
 for submit <at> debbugs.gnu.org; Tue, 26 Apr 2016 03:36:28 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54067)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jamartis@HIDDEN>) id 1auxXk-0003zg-OZ
 for bug-coreutils@HIDDEN; Tue, 26 Apr 2016 03:36:28 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <jamartis@HIDDEN>) id 1auxXh-0000Gf-JI
 for bug-coreutils@HIDDEN; Tue, 26 Apr 2016 03:36:24 -0400
Received: from mx1.redhat.com ([209.132.183.28]:53960)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <jamartis@HIDDEN>) id 1auxXh-0000G6-Cx
 for bug-coreutils@HIDDEN; Tue, 26 Apr 2016 03:36:21 -0400
Received: from int-mx09.intmail.prod.int.phx2.redhat.com
 (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by mx1.redhat.com (Postfix) with ESMTPS id 8E8557F342
 for <bug-coreutils@HIDDEN>; Tue, 26 Apr 2016 07:36:20 +0000 (UTC)
Received: from unused-4-107.brq.redhat.com (unused-4-142.brq.redhat.com
 [10.34.4.142])
 by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id
 u3Q7aIi6015062
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
 for <bug-coreutils@HIDDEN>; Tue, 26 Apr 2016 03:36:20 -0400
To: bug-coreutils@HIDDEN
From: Jakub Martisko <jamartis@HIDDEN>
Subject: [PATCH] tests/misc/date.pl: uppercase/lowercase test
Message-ID: <571F1A72.4020305@HIDDEN>
Date: Tue, 26 Apr 2016 09:36:18 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.6.0
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------060705070307040002080103"
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -2.5 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 26 Apr 2016 11:32:17 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

This is a multi-part message in MIME format.
--------------060705070307040002080103
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Added some basic test for date lowercase/uppercase output. Depends on 
https://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00015.html

--------------060705070307040002080103
Content-Type: text/x-patch;
 name="date.pl.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="date.pl.patch"

From e02e9de17cfa5999a3ef83f6a10c754bb425b274 Mon Sep 17 00:00:00 2001
From: Jakub Martisko <jamartis@HIDDEN>
Date: Tue, 12 Apr 2016 14:54:42 +0200
Subject: [PATCH] test: Add lowercase/uppercase flag tests for date

*tests/misc/date.pl: Added tests for lowercase output and
uppercase output. depends on:
https://lists.gnu.org/archive/html/bug-gnulib/2016-04/msg00015.html
---
 tests/misc/date.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/misc/date.pl b/tests/misc/date.pl
index 3454dcc..faf16a1 100755
--- a/tests/misc/date.pl
+++ b/tests/misc/date.pl
@@ -47,6 +47,8 @@ my @Tests =
      # test-name, [option, option, ...] {OUT=>"expected-output"}
      #
      ['1', "-d '$d1' +'%% %a %A %b %B'", {OUT=>"% Sun Sunday Jan January"}],
+     ['1U', "-d '$d1' +'%% %\#a %\#A %\#b %\#B'", {OUT=>"% SUN SUNDAY JAN JANUARY"}],
+     ['1L', "-d '$d1' +'%% %\#^a %\#^A %\#^b %\#^B'", {OUT=>"% sun sunday jan january"}],
 
      # [Actually, skip it on *all* systems. -- this Perl code is run at
      # distribution-build-time, not at configure/test time.  ]
-- 
2.5.0


--------------060705070307040002080103--




Acknowledgement sent to Jakub Martisko <jamartis@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#23379; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.