unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
Subject: Re: Bug in format-time-string in emacs 21.1?
Date: 12 Mar 2002 21:35:54 +0000	[thread overview]
Message-ID: <m3vgc18o5h.fsf@nyaumo.btinternet.com> (raw)
In-Reply-To: <m3n0xep8u8.fsf@Janik.cz>

Pavel@Janik.cz (Pavel Janík) writes:

>    From: Eli Zaretskii <eliz@is.elta.co.il>
>    Date: Tue, 12 Mar 2002 07:59:31 +0200 (IST)
> 
>    > > I think I've found a bug in the format-time-string function. In the 
>    > > documentation it says that the construct %h gives the abbreviated month 
>    > > name. I doesn't seem to work with 21.1. The %b construct still works.
>    > 
>    > I think this is a known problem with the MS-Windows time routines: they 
> 
> We should mention it in PROBLEMS then. Jason?

It turns out that %h is marked in the source code as a POSIX.2
extension, along with quite a few other format specifiers (which are
also not supported on Windows).

Rather than putting a note in PROBLEMS specific to %h on Windows, it
might be better to modify the doc-string for format-time-string, to
make it clear which specifiers are guaranteed to work, and which are
POSIX.2 or GNU extensions, and will only work on plaforms that
support them.

Alternatively, we could introduce more conditional blocks to
strftime.c to do something sensible with the POSIX.2 extensions on
platforms that only support POSIX.1 formats.  I think most of them
could be handled without too much effort.


-- 
Jason Rumney


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


       reply	other threads:[~2002-03-12 21:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.SUN.3.91.1020312075746.24908F-100000@is>
     [not found] ` <m3n0xep8u8.fsf@Janik.cz>
2002-03-12 21:35   ` Jason Rumney [this message]
2002-03-12 22:21     ` Bug in format-time-string in emacs 21.1? Paul Eggert
2002-03-12 22:56       ` Jason Rumney
2002-03-12 23:37         ` Paul Eggert
2002-03-13 19:49           ` Jason Rumney
2002-03-14  0:37             ` Paul Eggert
2002-03-13 10:59     ` Richard Stallman
2002-03-13 22:13       ` Jason Rumney
2002-03-14  0:13         ` Paul Eggert
2002-03-14 22:28           ` Jason Rumney

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3vgc18o5h.fsf@nyaumo.btinternet.com \
    --to=jasonr@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).