projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f1aa2
)
No fancy binmode() if no perlio.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 3 Jul 2003 06:58:01 +0000
(06:58 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 3 Jul 2003 06:58:01 +0000
(06:58 +0000)
p4raw-id: //depot/perl@19949
ext/IO/lib/IO/t/io_sock.t
patch
|
blob
|
history
diff --git
a/ext/IO/lib/IO/t/io_sock.t
b/ext/IO/lib/IO/t/io_sock.t
index
abaeafb
..
52ddae7
100755
(executable)
--- a/
ext/IO/lib/IO/t/io_sock.t
+++ b/
ext/IO/lib/IO/t/io_sock.t
@@
-356,7
+356,7
@@
if( $server_pid) {
last SERVER_LOOP unless $sock = $listen->accept;
# Do not print ok/not ok for this binmode() since there's
# a race condition with our client, just die if we fail.
- binmode($sock, ":utf8") or die;
+ if ($has_perlio) { binmode($sock, ":utf8") or die }
while (<$sock>) {
last SERVER_LOOP if /^quit/;
last if /^done/;