unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@twinsun.com>
Cc: emacs-devel@gnu.org
Subject: Re: Bug in format-time-string in emacs 21.1?
Date: Tue, 12 Mar 2002 14:21:14 -0800 (PST)	[thread overview]
Message-ID: <200203122221.g2CMLEX10014@shade.twinsun.com> (raw)
In-Reply-To: <m3vgc18o5h.fsf@nyaumo.btinternet.com> (jasonr@gnu.org)

> From: Jason Rumney <jasonr@gnu.org>
> Date: 12 Mar 2002 21:35:54 +0000
> 
> 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.

This suggestion is a bit obsolescent, as %h is required by the current
C standard (C99).  And POSIX.2 is now obsolete; it has been folded
into POSIX.1 (as of POSIX 1003.1-2001).

I suggest adding a sentence like "Not all platforms support
locale-specific formats" to the format-time-string doc string; that
will document the general problem.  I don't think it's worth
documenting all the ins and outs of the various standards and
implementations in the format-time-string doc; that will consume too
much space and won't be all that useful.


> Alternatively, we could introduce more conditional blocks to
> strftime.c to do something sensible

That would be a pain to support reliably.  There are lots of little
gotchas in this area.  It's simpler just to let the underlying
strftime handle (or mishandle) locale-related stuff.

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


  reply	other threads:[~2002-03-12 22:21 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   ` Bug in format-time-string in emacs 21.1? Jason Rumney
2002-03-12 22:21     ` Paul Eggert [this message]
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=200203122221.g2CMLEX10014@shade.twinsun.com \
    --to=eggert@twinsun.com \
    --cc=emacs-devel@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).