Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > tempfile should be binary by default, or at least a flag

Reply
Thread Tools

tempfile should be binary by default, or at least a flag

 
 
Ben Harper
Guest
Posts: n/a
 
      08-22-2006
Shouldn't tempfile open it's file in binary mode by default?

One can of course call .binmode immediately after creating the tempfile,
but doesn't binary by default make more sense in the case of a temporary
file?

If it's too late to change the default behaviour, then perhaps
tempfile.new should accept a flag parameter?

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between tempfile and spooled tempfile? Alex van der Spek Python 2 04-05-2012 05:42 PM
Ruby 1.9 one-click installer - or at least stable binary for windows? Aldric Giacomoni Ruby 2 02-11-2009 01:41 PM
Need regular expression for at least 7 characters and at least 1 special chatacter AAaron123 ASP .Net 0 10-03-2008 01:25 PM
POK Flag Weirdness wth binary files Wayne Myers Perl 1 05-27-2004 03:20 PM
POK Flag Weirdness wth binary files Wayne Myers Perl Misc 1 05-27-2004 07:11 AM



Advertisments