]> Savannah Git Hosting - gnulib.git/commitdiff
gitlog-to-changelog: port to MS-Windows
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Apr 2015 16:25:12 +0000 (09:25 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Apr 2015 16:27:29 +0000 (09:27 -0700)
* build-aux/gitlog-to-changelog (git_dir_option):
Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
MS-Windows Perl.  Reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html

ChangeLog
build-aux/gitlog-to-changelog

index a6db1c69e50d957f3161d2be2d6a5aeaf8f038e2..0bf9716ef38f81a6aaa5f20be52d539af43fcbdd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       gitlog-to-changelog: port to MS-Windows
+       * build-aux/gitlog-to-changelog (git_dir_option):
+       Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
+       MS-Windows Perl.  Reported by Eli Zaretskii in:
+       http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00504.html
+
 2015-04-07  Karl Berry  <karl@gnu.org>
 
        gendocs: new option --tex for passing args to texi2dvi.
index 4fa4f29702af0d6364460d9da1ac4f77b4264f32..3f4b06a4df197b01266af47a2ddbfde95d6407ae 100755 (executable)
@@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
     if 0;
 # Convert git log output to ChangeLog format.
 
-my $VERSION = '2015-03-21 01:01'; # UTC
+my $VERSION = '2015-04-09 16:03'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -328,7 +328,7 @@ sub git_dir_option($)
                   ? '  (tiny change)' : '');
 
       my $date_line = sprintf "%s  %s$tiny\n",
-        strftime ("%F", localtime ($1)), $2;
+        strftime ("%Y-%m-%d", localtime ($1)), $2;
 
       my @coauthors = grep /^Co-authored-by:.*$/, @line;
       # Omit meta-data lines we've already interpreted.