From unknown Thu Jun 19 14:01:34 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#41201 <41201@debbugs.gnu.org> To: bug#41201 <41201@debbugs.gnu.org> Subject: Status: 26.1; tar-mode-show-date prints middle-endian dates despite TIME_STYLE=long-iso Reply-To: bug#41201 <41201@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:01:34 +0000 retitle 41201 26.1; tar-mode-show-date prints middle-endian dates despite T= IME_STYLE=3Dlong-iso reassign 41201 emacs submitter 41201 trentbuck@gmail.com (Trent W. Buck) severity 41201 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 00:40:12 2020 Received: (at submit) by debbugs.gnu.org; 12 May 2020 04:40:12 +0000 Received: from localhost ([127.0.0.1]:53901 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYMiC-0006by-Dg for submit@debbugs.gnu.org; Tue, 12 May 2020 00:40:12 -0400 Received: from lists.gnu.org ([209.51.188.17]:44306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYMiB-0006br-Mk for submit@debbugs.gnu.org; Tue, 12 May 2020 00:40:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYMiA-0004lB-TE for bug-gnu-emacs@gnu.org; Tue, 12 May 2020 00:40:11 -0400 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]:39444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYMi9-0000Ab-7i for bug-gnu-emacs@gnu.org; Tue, 12 May 2020 00:40:10 -0400 Received: by mail-pl1-x62b.google.com with SMTP id s20so4848375plp.6 for ; Mon, 11 May 2020 21:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=1asY5qFJgaTVeSBJRJ2cx5jSGQ/COvtKKGnsfBcO3ds=; b=GCGxR68dHE5isX5cLqN714fflouW5qf4l2srN7n3p9wkY6Psv1MqaFU4cRGN1t/EMi LUBAPvF9bA1D4KLIoTA9QKVkPU+77AF5Kf+cBUuswqhFang9iqv1+WpmRzrY7CcG2Bj+ vzDxzrRdFnAIuXj+Jh9zCLk68BJmYc9KnWcsYlb0CShcUyEkJAwBPoPkC9L1vxHzyebK dMwhkCPj20QqHBrzAYSECTWgR76EnmuiNw3IcKXQHYYFD7y/tDdDFmyUkn2JJYMXWx3W dP0LDBmdq/wW9BLxf/BGzDQd4mUpe7sAEJpHDNylVHWlWaP1UoGZ7e5xtHLIeVODBjum S0tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=1asY5qFJgaTVeSBJRJ2cx5jSGQ/COvtKKGnsfBcO3ds=; b=Wl/kKB7ToSUsynmV6ZXD2V4qbWJdw+GxozyWdIWpKRtGg+Mp60gd6B19Qb7Y47VDyi AlBvhWqgKxqPdwuh59Lu1J1xdaul0TlLx2V47vNL3SO+zooDTsYX0TDABEnn51v+j2Sr wsUqCnzBOp/VIrNuRPRmqPu4eCILTQrEyksMbcDKlFJv4G69M3mFG5GYwc6NTpb13p6z W97q8K/5tCsRK8kcJG+mtQ7srKm4mnGP+AY6PVtjP25FGW7pEf8WvN/4v7j/iRbVBiDK ozVRof8S5O7R8KhtvYs1QKrpajPRrwnsc0KuSOh9/EJxTfYh7++eujJ0IlSfYCwfZXsr xNpQ== X-Gm-Message-State: AGi0PuZ2wR5WTGarOcN23B70l3LnINcJojCJA3YNPJ0Nq16gRSzUOB1G yx65XkIB/7iHp6YpYjOxBAfcdBrQ X-Google-Smtp-Source: APiQypIjgWXq9Y/2tTJHixqcpOKqctDlzaQMIuJRYgGO2KmYrQ9Dq8rJJ/F5giIb7P2wrKjLF2pYpg== X-Received: by 2002:a17:90a:f108:: with SMTP id cc8mr26801412pjb.198.1589258406323; Mon, 11 May 2020 21:40:06 -0700 (PDT) Received: from localhost ([203.7.155.117]) by smtp.gmail.com with ESMTPSA id k27sm9222709pgb.30.2020.05.11.21.40.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 21:40:05 -0700 (PDT) From: trentbuck@gmail.com (Trent W. Buck) To: bug-gnu-emacs@gnu.org Subject: 26.1; tar-mode-show-date prints middle-endian dates despite TIME_STYLE=long-iso Date: Tue, 12 May 2020 14:40:02 +1000 Message-ID: <87ftc5n4v1.fsf@goll.lan> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=trentbuck@gmail.com; helo=mail-pl1-x62b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a minor issue. Middle-endian ("US style") dates confuse me. I set TIME_STYLE=long-iso so I won't have to deal with them. This works for GNU ls and GNU tar: bash5$ touch x; ls -l x; tar cf x.tar x; tar tvf x.tar -rw-r--r-- 1 twb twb 0 2020-05-12 14:32 x -rw-r--r-- twb/twb 0 2020-05-12 14:32 x This doesn't work for tar-mode, because it processes tarballs using native elisp: bash5$ emacs -Q -eval '(setq-default tar-mode-show-date t)' x.tar -rw-r--r-- twb/twb 0 May 12 14:33 2020 x The responsible code appears to be tar-clip-time-string which appears to munge the output of CURRENT-TIME-STRING: (defun tar-clip-time-string (time) (let ((str (current-time-string time))) (concat " " (substring str 4 16) (format-time-string " %Y" time)))) Where CURRENT-TIME-STRING appears to be hard-coded to a format. That format matches neither GNU "date --rfc-email" (little-endian) nor GNU "date --rfc-3339=seconds" (big-endian). Surely emacs already supports locale-appropriate timestamps somewhere? Please hook up tar-mode to use that code. PS: see also "locale -k date_fmt", which these days seems to be the same for me (en_AU.UTF-8) and the default (C.UTF-8), hence why I use TIME_STYLE. From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 11:51:25 2020 Received: (at 41201) by debbugs.gnu.org; 12 May 2020 15:51:25 +0000 Received: from localhost ([127.0.0.1]:56381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYXBf-0005oy-CZ for submit@debbugs.gnu.org; Tue, 12 May 2020 11:51:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jYXBe-0005oj-0B for 41201@debbugs.gnu.org; Tue, 12 May 2020 11:51:18 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:43748) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYXBY-0000ei-JV; Tue, 12 May 2020 11:51:12 -0400 Received: from [176.228.60.248] (port=3147 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jYXBY-0003KG-3o; Tue, 12 May 2020 11:51:12 -0400 Date: Tue, 12 May 2020 18:50:51 +0300 Message-Id: <83k11h884k.fsf@gnu.org> From: Eli Zaretskii To: trentbuck@gmail.com (Trent W. Buck) In-Reply-To: <87ftc5n4v1.fsf@goll.lan> (trentbuck@gmail.com) Subject: Re: bug#41201: 26.1; tar-mode-show-date prints middle-endian dates despite TIME_STYLE=long-iso References: <87ftc5n4v1.fsf@goll.lan> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 41201 Cc: 41201@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: trentbuck@gmail.com (Trent W. Buck) > Date: Tue, 12 May 2020 14:40:02 +1000 > > Middle-endian ("US style") dates confuse me. > I set TIME_STYLE=long-iso so I won't have to deal with them. > This works for GNU ls and GNU tar: > > bash5$ touch x; ls -l x; tar cf x.tar x; tar tvf x.tar > -rw-r--r-- 1 twb twb 0 2020-05-12 14:32 x > -rw-r--r-- twb/twb 0 2020-05-12 14:32 x > > This doesn't work for tar-mode, because > it processes tarballs using native elisp: > > bash5$ emacs -Q -eval '(setq-default tar-mode-show-date t)' x.tar > -rw-r--r-- twb/twb 0 May 12 14:33 2020 x This is already fixed in what will become Emacs 27.1: there we display the date in the yy-mm-dd format. You can find the latest pretest of Emacs 27.1 on alpha.gnu.org. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 01 10:50:40 2020 Received: (at 41201-done) by debbugs.gnu.org; 1 Sep 2020 14:50:41 +0000 Received: from localhost ([127.0.0.1]:56743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD7cO-0005ve-MJ for submit@debbugs.gnu.org; Tue, 01 Sep 2020 10:50:40 -0400 Received: from mail-ej1-f65.google.com ([209.85.218.65]:39139) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kD7cL-0005vL-OL for 41201-done@debbugs.gnu.org; Tue, 01 Sep 2020 10:50:39 -0400 Received: by mail-ej1-f65.google.com with SMTP id p9so2065273ejf.6 for <41201-done@debbugs.gnu.org>; Tue, 01 Sep 2020 07:50:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=ZC0H1xM9OrETbHgGVceU7ot6K4U0XmDbeuDcoWYQza4=; b=Ynn95uUcjWbbKgGH/zt/FJwpgd8dr5xxZp+yNuhPFpALsF1KyCSi25GBFKtjjb0M3H aXFGvYzCPdQUubPctwpqZ7QV7psGTmRFQhibWtpPK7ud652UoWMVGizDTgJOLRhgeoDA yTqtr7amcjP2x/9OZthO8F7IOs60uiw+YLg1SS2HeJpNJhUU14BpBAwDk468ZGWoOLgQ dWaU30ddgofxvVeFF8E/zzdFa4pIy5jrqI55KHi12XDuv6hWPkUsS1nSUTNHYo7D6o16 8ORKP9Pp9Va4KCCgya2WOAnVaiocAmmZF6B7L18N/2rImEVmwMsJepYqT33qY3cMXaVQ zzdw== X-Gm-Message-State: AOAM533rJtemzWpL78QD3ZFetankzfl70twzVEpfED+HKsVYX8WSD8Mi vfZkvSeuPNYZBXPl8rER7tOv/uu/N6xRzqmedko= X-Google-Smtp-Source: ABdhPJwA6FOsQmNOg6WgPkWeIh4P6yIn4g+rDrbKbFlOxCIFCIe2gaM0IPXsVOq6lDD2bPD0y8YuGByghQo9mQP4czw= X-Received: by 2002:a17:906:bb0e:: with SMTP id jz14mr1865319ejb.525.1598971832145; Tue, 01 Sep 2020 07:50:32 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 1 Sep 2020 07:50:31 -0700 From: Stefan Kangas In-Reply-To: <83k11h884k.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 12 May 2020 18:50:51 +0300") References: <87ftc5n4v1.fsf@goll.lan> <83k11h884k.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 1 Sep 2020 07:50:31 -0700 Message-ID: Subject: Re: bug#41201: 26.1; tar-mode-show-date prints middle-endian dates despite TIME_STYLE=long-iso To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 41201-done Cc: "Trent W. Buck" , 41201-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Eli Zaretskii writes: >> From: trentbuck@gmail.com (Trent W. Buck) >> Date: Tue, 12 May 2020 14:40:02 +1000 >> >> Middle-endian ("US style") dates confuse me. >> I set TIME_STYLE=long-iso so I won't have to deal with them. >> This works for GNU ls and GNU tar: >> >> bash5$ touch x; ls -l x; tar cf x.tar x; tar tvf x.tar >> -rw-r--r-- 1 twb twb 0 2020-05-12 14:32 x >> -rw-r--r-- twb/twb 0 2020-05-12 14:32 x >> >> This doesn't work for tar-mode, because >> it processes tarballs using native elisp: >> >> bash5$ emacs -Q -eval '(setq-default tar-mode-show-date t)' x.tar >> -rw-r--r-- twb/twb 0 May 12 14:33 2020 x > > This is already fixed in what will become Emacs 27.1: there we display > the date in the yy-mm-dd format. You can find the latest pretest of > Emacs 27.1 on alpha.gnu.org. Since this is already fixed, I'm closing this bug report now. Please reopen the bug or open a new one if you can still reproduce this on Emacs 27.1 or later. From unknown Thu Jun 19 14:01:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 30 Sep 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator