|
From: | Paul Eggert |
Subject: | Re: Use of strftime in movemail.ec |
Date: | Sat, 5 Mar 2016 11:39:07 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
Eli Zaretskii wrote:
I believe these format specifiers were used under the assumption that Gnulib's strftime will be used on systems that don't support the full functionality.
No, I merely assumed C99, which specifies the %e and %T format specifiers for strftime. I didn't know Microsoft lacks support for this. I didn't think Gnulib would be needed.
Using %d instead of %e changes the output format of movemail slightly, by using leading 0 rather than leading space for day of month. It's more conservative to stick with the same format, so I installed a further patch to try to do that. I can't easily test this further patch on Windows, but it clearly restores the old behavior elsewhere because now all the changes are inside "#ifdef WINDOWSNT".
Using Gnulib would be another possibility, but would be more intrusive for other reasons (we'd have to supply replacement implementations of emacs_getenv_TZ and emacs_setenv_TZ on all platforms), and I'd rather not do that so close to a release.
[Prev in Thread] | Current Thread | [Next in Thread] |