I did nothing :-).  When I type make test, it goes and dies...  I type
nothing after 'return' for <make test>.

A 'screen capture':
-------------------------
Test 2(1), TESTING THE WIZARD, enter some things here, please also test F1


substr outside of string at
/proj/twolf/local/lib/perl5/site_perl/5.6.1/Term/Screen/ReadLine.pm line
235.s (I/E)
: schrijving Proces   not ok 2
: ter a password              make: *** [test_dynamic] Error 255
 
robc@vision:/proj/twolf/local/src/cpanplus/build/Term-Screen-Wizard-0.52
% 













   F1 - Help   Esc - Annuleren   Ctrl-Enter - Volgende
---------------------------

Line 235 (if I believe the error message) is the substr in the else clause:

  if ($L>$displaylen) {
    if ($mode == 1) {
 
$self->at($row,$column)->puts(substr($line,$L-$displaylen-1,$displaylen));
    }
    else {
 
$self->at($row,$column)->puts(substr($line,$L-$displaylen,$displaylen));
    }
  }

Per Programming Perl, 3rd edition:

substr outside of string

(W substr|F) You tried to reference a substr that pointed outside of a
string.  That is, the absolute value of the offset was larger than the
length of the string.  This warning is fatal if substr is used in an lvalue
context (as the lefthand side of an assignment or as a subroutine argument,
for example).

When I look, $L is 15 and $displaylen is -33.  Hmmmm...  That -33 does not
look so good.  Does this give you enough?  I can dig some more, but probably
not until next week.

Rob

> -----Original Message-----
> From: Hans Dijkema [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 2:33 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: RE: FAIL Term-Screen-Wizard-0.52 sun4-solaris 2.8
> 
> 
> Uhm, what dit you do? I've got a cygwin installation here
> and an AIX installation at my work, I don't no how to
> reproduce your error.
> 
> Best whishes,
> Hans Dijkema
> 
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Verzonden: donderdag 11 april 2002 22:09
> Aan: [EMAIL PROTECTED]
> CC: [EMAIL PROTECTED]
> Onderwerp: FAIL Term-Screen-Wizard-0.52 sun4-solaris 2.8
> 
> 
> This distribution has been tested as part of the cpan-testers
> effort to test as many new uploads to CPAN as possible.  See
> http://testers.cpan.org/
> 
> Please cc any replies to [EMAIL PROTECTED] to keep other
> test volunteers informed and to prevent any duplicate effort.
> 
> --
> 
> Test 2(1), TESTING THE WIZARD, enter some things here, please 
> also test F1
> 
> 
> substr outside of string at
> /proj/twolf/local/lib/perl5/site_perl/5.6.1/Term/Screen/ReadLi
> ne.pm line
> 235.I/E)
> : schrijving Proces      not ok 2
> : ter a password                 make: *** [test_dynamic] Error 255
> 
> --
> 
> Summary of my perl5 (revision 5.0 version 6 subversion 1) 
> configuration:
>   Platform:
>     osname=solaris, osvers=2.8, archname=sun4-solaris
>     uname='sunos vision 5.8 generic_108528-10 sun4u sparc 
> sunw,ultra-5_10 '
>     config_args='-de'
>     hint=previous, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=undef
>     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef
>   Compiler:
>     cc='cc', ccflags
> ='-I/proj/twolf/local/include -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BITS=64',
>     optimize='-O',
> 
> 
> 
> 
> cppflags='-I/proj/twolf/local/include -D_LARGEFILE_SOURCE 
> -D_FILE_OFFSET_BIT
> S=64'
>     ccversion='', gccversion='2.95.2 19991024 (release)',
> gccosandvers='solaris2.8'
>     intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
>     d_longlong=define, longlongsize=8, d_longdbl=define, 
> longdblsize=16
>     ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
>     alignbytes=8, usemymalloc=n, prototype=define
>   Linker and Libraries:
>     ld='cc', ldflags =' '
>     libpth=/proj/twolf/local/lib /usr/lib
>     libs=-lsocket -lnsl -ldb -ldl -lm -lc
>     perllibs=-lsocket -lnsl -ldl -lm -lc
>     libc=, so=so, useshrplib=false, libperl=libperl.a
>   Dynamic Linking:
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
>     cccdlflags='-fPIC', lddlflags='-G'
> 
> 

Reply via email to