/[cvs]/ccvs/lib/strftime.c
ViewVC logotype

Diff of /ccvs/lib/strftime.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by dprice, Mon May 23 17:44:32 2005 UTC revision 1.8 by dprice, Fri Aug 12 20:58:10 2005 UTC
# Line 373  static CHAR_T const month_name[][10] = Line 373  static CHAR_T const month_name[][10] =
373  # define ns 0  # define ns 0
374  #endif  #endif
375    
 #if ! defined _LIBC && ! HAVE_RUN_TZSET_TEST  
 /* Solaris 2.5.x and 2.6 tzset sometimes modify the storage returned  
    by localtime.  On such systems, we must use the tzset and localtime  
    wrappers to work around the bug.  */  
 "you must run the autoconf test for a working tzset function"  
 #endif  
   
376    
377  /* Write information from TP into S according to the format  /* Write information from TP into S according to the format
378     string FORMAT, writing no more that MAXSIZE characters     string FORMAT, writing no more that MAXSIZE characters
# Line 439  my_strftime (CHAR_T *s, size_t maxsize, Line 432  my_strftime (CHAR_T *s, size_t maxsize,
432    const char *format_end = NULL;    const char *format_end = NULL;
433  #endif  #endif
434    
435    #if ! defined _LIBC && ! HAVE_RUN_TZSET_TEST
436      /* Solaris 2.5.x and 2.6 tzset sometimes modify the storage returned
437         by localtime.  On such systems, we must either use the tzset and
438         localtime wrappers to work around the bug (which sets
439         HAVE_RUN_TZSET_TEST) or make a copy of the structure.  */
440      struct tm copy = *tp;
441      tp = ©
442    #endif
443    
444    zone = NULL;    zone = NULL;
445  #if HAVE_TM_ZONE  #if HAVE_TM_ZONE
446    /* The POSIX test suite assumes that setting    /* The POSIX test suite assumes that setting

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26