Closed p5pRT closed 20 years ago
$ perl -e 'print ord("\c?")' invalid control request: '\157' on ASCII: ord("\c?") == 127 $ perl -e 'print ord("\c@")' invalid control request: '\174' on ASCII: ord("\c@") == 0 $ perl -e 'print ord("\c^")' invalid control request: '\137' on ASCII: ord("\c^") == 30 $ perl -e 'print ord("\c_")' invalid control request: '\155' on ASCII: ord("\c_") == 31
everything else from "\cA" through "\c]" (ASCII order) works as "expected"\, that is on the EBCDIC machine "\cA" eq chr(0) etc.
Here is a fix suitable for 5.005_03 and 5.005_57:
End of Patch.
Here is a proposed new regression test that should flag any possible control character problems:
End of Patch.
With the former patch and a 5.005_03 version of the latter patch (available on request) I obtained these `make test` results:
All tests successful. u=6.37 s=2.12 cu=100.82 cs=33.6 scripts=184 tests=6519
Peter Prymmer
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=os390\, osvers=06.00\, archname=os390 uname='os390 mvs3 06.00 02 9672 ' hint=recommended\, useposix=true\, d_sigaction=define usethreads=undef useperlio=undef d_sfio=undef Compiler: cc='c89'\, optimize=' '\, gccversion= cppflags='' ccflags ='-DMAXSIG=38 -DOEMVS -D_OE_SOCKETS -D_XOPEN_SOURCE_EXTENDED -D_ALL_SOURCE -DYYDYNAMIC -I/usr/local/include' stdchar='char'\, d_stdstdio=undef\, usevfork=false intsize=4\, longsize=4\, ptrsize=4\, doublesize=8 d_longlong=undef\, longlongsize=\, d_longdbl=define\, longdblsize=16 alignbytes=8\, usemymalloc=n\, prototype=define Linker and Libraries: ld='ld'\, ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lm -lc libc=\, so=a\, useshrplib=false\, libperl=libperl.a Dynamic Linking: dlsrc=dl_none.xs\, dlext=none\, d_dlsymun=undef\, ccdlflags='' cccdlflags='-W 0\,dll\,"langlvl(extended)"'\, lddlflags=''
Characteristics of this binary (from libperl): Built under os390 Compiled at Jul 1 1999 18:59:55 @INC: lib /usr/local/lib/perl5/5.00503/os390 /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/os390 /usr/local/lib/perl5/site_perl/5.005 .
Migrated from rt.perl.org#950 (status was 'resolved')
Searchable as RT950$