Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

[perl #74096] Test for snprintf is inverted

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


perlbug-followup at perl

Jul 3, 2012, 9:17 PM

Post #1 of 2 (45 views)
Permalink
[perl #74096] Test for snprintf is inverted

I don't think this is a bug. The program inverts the return value
because program exit codes have a different sense of truth than C does -
a program that exits with 0 (returns 0 from the main function, in this
case) succeeds, while a program that exits with 1 fails. Therefore, when
you're returning a success code from main(), you need to invert it. I
think we can close this unless someone can come up with a better
explanation of why the current behavior is wrong.

-doy

---
via perlbug: queue: perl5 status: stalled
https://rt.perl.org:443/rt3/Ticket/Display.html?id=74096


perlbug-followup at perl

Jul 3, 2012, 10:53 PM

Post #2 of 2 (40 views)
Permalink
[perl #74096] Test for snprintf is inverted [In reply to]

There are some emails that didn't seem to have made it to the tracker.
I've already explained about the necessity of the "inversion". The OP
responded that the found the problem with his libc. CLosing.


---
via perlbug: queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=74096

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.