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

Discussion in 'Ruby' started by Ben Harper, Aug 22, 2006.

  1. Ben Harper

    Ben Harper Guest

    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/.
     
    Ben Harper, Aug 22, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Wayne Myers

    POK Flag Weirdness wth binary files

    Wayne Myers, May 26, 2004, in forum: Perl
    Replies:
    1
    Views:
    488
    ! aaa
    May 27, 2004
  2. AAaron123
    Replies:
    0
    Views:
    631
    AAaron123
    Oct 3, 2008
  3. Aldric Giacomoni
    Replies:
    2
    Views:
    163
    Aldric Giacomoni
    Feb 11, 2009
  4. Wayne Myers

    POK Flag Weirdness wth binary files

    Wayne Myers, May 27, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    128
    Ben Morrow
    May 27, 2004
  5. Alex van der Spek

    Difference between tempfile and spooled tempfile?

    Alex van der Spek, Apr 5, 2012, in forum: Python
    Replies:
    2
    Views:
    369
    Steve Howell
    Apr 5, 2012
Loading...

Share This Page