Front page | perl.perl5.porters |
Postings from June 2014
Doco-bug for -T and -B?
Thread Next
From:
David Cantrell
Date:
June 26, 2014 10:52
Subject:
Doco-bug for -T and -B?
Message ID:
20140626105216.GB29878@bytemark.barnyard.co.uk
For the unicodely challenged (which may include my MUA!) the funny
foreign characters in this are apparently Chinese for "text".
$ cat foo
文本
$ perl-5.20.0/bin/perl -E 'say -T "foo"'
1
$ perl-5.20.0/bin/perl -E 'say -B "foo"'
$
That's nice, it says that it's text, and not binary. However, the
documentation says:
-T File is an ASCII text file (heuristic guess).
-B File is a "binary" file (opposite of -T).
So either the doco is wrong and needs updating to drop the 'ASCII', or
it's a rubbish heuristic!
And FWIW it behaves like this at least as far back as 5.8.8.
--
David Cantrell | Enforcer, South London Linguistic Massive
Seven o'clock in the morning is something that
happens to those less fortunate than me
Thread Next
-
Doco-bug for -T and -B?
by David Cantrell