From: matz@... (Yukihiro Matsumoto) Date: 2001-06-27T10:11:53+09:00 Subject: [ruby-talk:16942] Re: Ruby equivalent to -B and -T functions Hi, In message "[ruby-talk:16923] Ruby equivalent to -B and -T functions" on 01/06/27, "Brett W. Denner" writes: |Does Ruby have equivalents to the Perl functions -B and -T? (in Perl, -B |returns true if the file it operates on contains binary data, otherwise |false; -T performs in like fashion for a text file.) No. The definition of text/binary is too much western centric. It doesn't work well with encodings other than ASCII, for example Japanese encodings, or even Unicode. matz.