GNU bug report logs -
#641
format-time-string %Z does not work, starting with Emacs 22.2
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Fri, 1 Aug 2008 16:55:06 UTC
Severity: wishlist
Merged with 9794
Found in versions 22.2, 23.0.60, 24.0.90
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #211 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
> We could at least provide this, and if the mapping fails we
> could print a message that it's an unknown string, and the
> user can submit a bug. %Z could show the full Windows-provided
> name, which IMHO is better than nothing.
Yes, my point from the beginning is that the Windows name can be better than
nothing, depending on your needs.
It depends on what you want/need in any given context. I agree with Eli that we
also need to let users specify, when they need it, a name guaranteed to be
Posix-compliant, which would be "" if no other Posix name is appropriate.
IOW, we should give users _both_ possibilities unambiguously: Posix-only and
possibly-non-Posix, better-than-nothing, YMMV, human-readable name.
We can do that by introducing a new format key, in addition to %Z. Either %Z or
the new key can be for the better-than-nothing, human-readable name. %Z for this
has the advantage of backward compatibility. %Z for the Posix-compliant name has
the advantage that "Z" is itself a Posix convention.
I'm OK with either approach. The important thing is to give users the option of
specifying either name format, depending on their needs.
This bug report was last modified 13 years and 270 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.