in reply to Re^3: ActiveState woes : Is it EOF-blind?
in thread ActiveState woes : Is it EOF-blind?
By has no effect what do you mean?
I mean it doesn't change the outcome. The program behaves as if it wasn't there. It hangs.
Tested on Win2k SP2, AS perl 5.6.1
Well that's different. Various ActiveState builds on WinXP:
| Version | Build | Result w/o EOF | Result w/ EOF |
|---|---|---|---|
| 5.6.0 | Active State build 623 | Hangs | Program ends as desired |
| 5.6.1 | Active State build 635 | Hangs | Program ends as desired |
| 5.8.0 | Active State build 806 | Hangs | Hangs |
| 5.8.8 | Active State build 817 | Hangs | Hangs |
| 5.10.0 | Active State build 1001 | Hangs | Hangs |
I suspect you'd get the same results on Win2k.
This is why:
>debug -e100 "abc",0D,0A,1A,0D,0A,"def",0D,0A -rcx CX 0000 :0D -ntest -w Writing 0000D bytes -q >c:\progs\perl560\bin\perl -ple1 test abc >c:\progs\perl561\bin\perl -ple1 test abc >c:\progs\perl580\bin\perl -ple1 test abc → def >c:\progs\perl588\bin\perl -ple1 test abc → def >c:\progs\perl5100\bin\perl -ple1 test abc → def
More specifically, it's probably related to the introduction of PerlIO.
>c:\progs\perl560\bin\perl -V | find /i "perlio"
useperlio=undef d_sfio=undef uselargefiles=undef
>c:\progs\perl561\bin\perl -V | find /i "perlio"
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
>c:\progs\perl580\bin\perl -V | find /i "perlio"
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -
DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_
PERLIO -DPERL_MSVCRT_READFIX',
>c:\progs\perl588\bin\perl -V | find /i "perlio"
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -
DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_
CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX',
USE_PERLIO USE_SITECUSTOMIZE
>c:\progs\perl5100\bin\perl -V | find /i "perlio"
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
cc='cl', ccflags ='-nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -
DNO_STRICT -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPRIVLIB_LAST_IN_INC -DPERL_IM
PLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX',
USE_LARGE_FILES USE_PERLIO USE_SITECUSTOMIZE
Perl shouldn't have to treat \x1A specially (since it's only needed when reading from the console which is handled by the system) and it *must not* treat \x1A specially in some cases (such as when the encoding is UTF-16 or when the input can be "binary"), so I believe PerlIO is *correct* and there's actually a bug somewhere and this whole \x1A thing is a workaround that no longer works.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: ActiveState woes : Is it EOF-blind?
by BrowserUk (Patriarch) on May 06, 2008 at 10:12 UTC | |
by ikegami (Patriarch) on May 06, 2008 at 12:26 UTC |