aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog8
-rw-r--r--src/strftime.c9
2 files changed, 12 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c8f3fdf0be6..c390352004b 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,11 @@
12000-10-20 Andrew Innes <andrewi@gnu.org>
2
3 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4 Windows.
5 (my_strftime) <macro>: Don't use macro arg list when redefining as
6 _strftime_copytm.
7 (my_strftime) <function>: Supply 0 as ut argument.
8
12000-10-19 Jason Rumney <jasonr@altavista.net> 92000-10-19 Jason Rumney <jasonr@altavista.net>
2 10
3 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before 11 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
diff --git a/src/strftime.c b/src/strftime.c
index ef7189e6dda..f6e88e92a72 100644
--- a/src/strftime.c
+++ b/src/strftime.c
@@ -441,7 +441,7 @@ static CHAR_T const month_name[][10] =
441# define ut 0 441# define ut 0
442#endif 442#endif
443 443
444#if !defined _LIBC && HAVE_TZNAME && HAVE_TZSET 444#if !defined _LIBC && !defined(WINDOWSNT) && HAVE_TZNAME && HAVE_TZSET
445 /* Solaris 2.5 tzset sometimes modifies the storage returned by localtime. 445 /* Solaris 2.5 tzset sometimes modifies the storage returned by localtime.
446 Work around this bug by copying *tp before it might be munged. */ 446 Work around this bug by copying *tp before it might be munged. */
447 size_t _strftime_copytm __P ((char *, size_t, const char *, 447 size_t _strftime_copytm __P ((char *, size_t, const char *,
@@ -459,8 +459,7 @@ static CHAR_T const month_name[][10] =
459 return _strftime_copytm (s, maxsize, format, &tmcopy ut_argument); 459 return _strftime_copytm (s, maxsize, format, &tmcopy ut_argument);
460 } 460 }
461# undef my_strftime 461# undef my_strftime
462# define my_strftime(S, Maxsize, Format, Tp) \ 462# define my_strftime _strftime_copytm
463 _strftime_copytm (S, Maxsize, Format, Tp)
464#endif 463#endif
465 464
466 465
@@ -804,8 +803,8 @@ my_strftime (s, maxsize, format, tp ut_argument)
804 subformat: 803 subformat:
805 { 804 {
806 CHAR_T *old_start = p; 805 CHAR_T *old_start = p;
807 size_t len = my_strftime (NULL, (size_t) -1, subfmt, tp); 806 size_t len = my_strftime (NULL, (size_t) -1, subfmt, tp, 0);
808 add (len, my_strftime (p, maxsize - i, subfmt, tp)); 807 add (len, my_strftime (p, maxsize - i, subfmt, tp, 0));
809 808
810 if (to_uppcase) 809 if (to_uppcase)
811 while (old_start < p) 810 while (old_start < p)