[Swift-devel] Strange behaviour of fprintf in Swift 0.93 release candidate

Tim Armstrong tim.g.armstrong at gmail.com
Thu Oct 20 20:33:55 CDT 2011


I've been seeing various strange behaviour from fprintf in Swift 0.93 which
didn't occur in Swift 0.92

In one case, the wrong filename is used.  With the following code, instead
of printing to a file testfprintf1.out, fprintf instead prints to the file
"filename:string = testfprintf1.out - Closed".  I've added a bug report for
this case: Bug report:
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=595
string filename;
filename = "testfprintf1.out";
fprintf(filename, "done\n");

I've also been seeing Swift hanging when it is trying to write to a fifo.
I.e.with something like the below code, fprintf never fires.  I've attached
a log if anyone has any ideas.  I've been attempting to replicate the
problem with a simpler script before posting a bug report.
external e;
e = somefunction();
fprintf(fifoname, "%kdone\n", e);


- Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20111020/d1083c78/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rserver-20111020-2017-n8z7bvuc.log
Type: text/x-log
Size: 34861 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20111020/d1083c78/attachment.bin>


More information about the Swift-devel mailing list