Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: D07multibyte.ztst failure on HP-UX 11.11



Sorry if anyone gets this twice, I sent it yesterday but haven't seen
it show up on the list yet.

On Thu, Apr 30, 2009 at 05:03:59PM +0100, Peter Stephenson wrote:
> Paul Ackersviller wrote:
> > That gets me past that test, then a subsequent one fails.
> 
> Urgh.  I can't help feeling it might be better if they just fixed the
> system.

Granted, it is and old, if not already-obsolete, system.

> > ./D07multibyte.ztst: starting.
> > locale en_US.UTF-8 failed
> > *** /tmp/zsh.ztst.out.4937	2009-04-30 11:23:24.000000000 -0400
> > --- /tmp/zsh.ztst.tout.4937	2009-04-30 11:23:24.000000000 -0400
> > ***************
> > *** 1,4 ****
> > - OK
> > - OK
> > - OK
> > - OK
> > --- 0 ----
> > Test ./D07multibyte.ztst failed: output differs from expected as shown above 
> > for:
> >   testfn() { (LC_ALL=C; print $'\u00e9') }
> >   repeat 4 testfn 2>&1 | while read line; do
> >     if [[ $line = *"character not in range"* ]]; then
> >       print OK
> >     elif [[ $line = "?" ]]; then
> >       print OK
> >     else
> >       print Failed: no error message and no question mark
> >     fi
> >   done
> >   true
> > Was testing: error handling in Unicode quoting
> > ./D07multibyte.ztst: test failed.
> 
> Eh?  How did you manage to get *no* output from that test?  What does
> testfn do when run on it's own?

Same thing -- it seems the read is either detecting EOF right off,
or else failing silently somehow.  I don't do the if at all,
but I see I can get there by using a non-utf8 value of LANG.



Messages sorted by: Reverse Date, Date, Thread, Author