Hi,

In message "[ruby-talk:16923] Ruby equivalent to -B and -T functions"
    on 01/06/27, "Brett W. Denner" <Brett.W.Denner / lmco.com> 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.