bugGuile - Bugs: bug #24130, `strftime' broken on AIX, Tru64,...

 
 
Show feedback again

bug #24130: `strftime' broken on AIX, Tru64, and Solaris

Submitted by:  Ludovic Courtès <civodul>
Submitted on:  Mon 25 Aug 2008 08:37:10 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 11 May 2009 10:16:30 PM UTC, comment #3:

Fixed in `master' thanks to Gnulib.

In 1.8, not a fix but an improvement:

http://git.savannah.gnu.org/cgit/guile.git/commit/?id=1011599792302b356195663a3efd68a234c11f69

We could use `AC_LIBOBJ' et al. to provide a real fix, though...

Thanks,
Ludo'.

Ludovic Courtès <civodul>
Project Administrator
Mon 11 May 2009 08:37:14 PM UTC, comment #2:

On Tru64 5.1b, we get:

#v+
FAIL: strftime: C99 %z format: GMT
FAIL: strftime: C99 %z format: EST+5
#v-

More precisely:

#v+
(putenv "TZ=GMT+0")
(tzset)
(let ((tm (localtime 86400)))
(strftime "%z" tm))
=> "GMT"
#v-

and:

#v+
(putenv "TZ=EST+5")
(tzset)
(let ((tm (localtime 86400)))
(strftime "%z" tm))
=> "EST"
#v-

The feature test in `time.test' goes like this:

#v+
(strftime "%z" (gmtime 0))
=> "EST"
#v-

Ludo'.

Ludovic Courtès <civodul>
Project Administrator
Mon 25 Aug 2008 08:38:50 AM UTC, comment #1:

On Solaris:

http://thread.gmane.org/gmane.lisp.guile.bugs/3857

Ludo'.

Ludovic Courtès <civodul>
Project Administrator
Mon 25 Aug 2008 08:37:10 AM UTC, original submission:

Hi,

`strftime' was reported to be broken on AIX:

http://thread.gmane.org/gmane.lisp.guile.bugs/3796

It is also said to be broken on Solaris.

Gnulib has an `strftime' module, which we should use in HEAD and borrow in 1.8.

Thanks,
Ludovic.

Ludovic Courtès <civodul>
Project Administrator

 

(Note: upload size limit is set to 512 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by civodul (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter 421 here (basic anti-spam test):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 11 May 2009 10:16:30 PM UTCcivodulSummary`strftime\' broken on AIX and Solaris=>`strftime' broken on AIX, Tru64, and Solaris
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup