I've been seeing various strange behaviour from fprintf in Swift 0.93 which didn't occur in Swift 0.92<br><br>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: <a href="https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=595">https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=595</a><br>
string filename;<br>filename = "testfprintf1.out";<br>fprintf(filename, "done\n");<br><br>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.<br>
external e;<br>e = somefunction();<br>fprintf(fifoname, "%kdone\n", e);<br><br><br>- Tim