From: Ivan Cibrario Bertolotti <ivan.cibrario@polito.it>
To: Glenn Morris <rgm@gnu.org>
Cc: 21943@debbugs.gnu.org
Subject: bug#21943: 25.1.50; Pcvs fails to list CVS entries
Date: Tue, 24 Nov 2015 09:27:06 +0100 [thread overview]
Message-ID: <3259EB2B-D4B3-4704-9322-AF43774589E6@polito.it> (raw)
In-Reply-To: <ydh9kc5yma.fsf@fencepost.gnu.org>
On 23 Nov 2015, at 20:01, Glenn Morris <rgm@gnu.org> wrote:
>
> Ivan Cibrario Bertolotti wrote:
>
>> When trying to list CVS entries using the pcvs builtin package,
>> for instance by means of the C-u <return> on any CVS directory
>> in a dired buffer, the following error message comes out:
>>
>> cvs-fileinfo-from-entries: Invalid time zone specification: utc
>>
>> The issue can probably be tracked down to the use of 'utc as third
>> argument of format-time-string at line 468 of pcvs-info.el. Afaik,
>> the semantics of this argument have been changed in July 2015.
>
> Thanks for the report. The pcvs fix is obvious, but it seems to me that
> this change to format-time-string should be called out in NEWS as in
> incompatible one. (Obviously it would be nicer if the change were
> backwards compatible.)
Thank you for your prompt reply. As far as I know (just my 2 cents,
I’m in no way an Emacs Lisp expert) the changes introduced by
commit af32fa956267af40db61051c248597144d41521c
have been documented in NEWS, although the incompatibility has
not been explicitly called out.
More specifically, in Emacs 24.5.1, the third argument of
format-time-string was handled “as a Boolean”, that is, all non-nil
arguments were treated in the same way.
"if non-nil, means describe TIME as Universal Time; nil means
describe TIME in the local time zone”
In 25.1.50, a non-nil argument is further analyzed, looking for a
time zone rule or a few other special values. Of them, t calls for
the old behavior.
"The optional ZONE is omitted or nil for Emacs local time, t for
Universal Time, ‘wall’ for system wall clock time, or a string as in
‘set-time-zone-rule’ for a time zone rule”
Therefore, I reckon that any call to format-time-string made in the
past with a third argument that is non-nil, not t, and does not
correspond to a valid time zone rule, is a potential source of
compatibility issues.
I do agree that the fix is obvious (most likely, just replace
any non-nil third argument with t), but it may require scanning the
code base for calls to format-time-string.
On the other hand, without introducing additional arguments, it may
be difficult to preserve backward compatibility because it is hard
to predict what programmers used as a “non-nil value” in the past.
Best regards,
ICB
prev parent reply other threads:[~2015-11-24 8:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 17:11 bug#21943: 25.1.50; Pcvs fails to list CVS entries Ivan Cibrario Bertolotti
2015-11-23 19:01 ` Glenn Morris
2015-11-24 8:27 ` Ivan Cibrario Bertolotti [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3259EB2B-D4B3-4704-9322-AF43774589E6@polito.it \
--to=ivan.cibrario@polito.it \
--cc=21943@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.