On Fri, May 28, 2010 at 02:27:26PM +0200, Werner Fink wrote:
> On Fri, May 28, 2010 at 02:00:36PM +0200, Werner Fink wrote:
> > /suse/werner> ksh -c 'echo ${.sh.version}'
> > Version JM 93t+ 2010-05-24
> > /suse/werner> ksh ksh93/src/cmd/ksh93/tests/sjis.sh
> >         sjis.sh[61]: Shift-JIS encoding failed
> > 
> > it seems that the `test' builtin fails on the characters
> > 
> >   \x81\x5c
> >   \x81\x7c
> > 
> > the scriptlet for testing this can be found in the
> > attachment.
> > 
> > 
> >      Werner
> 
> Beside this I've found that the program pty does not exit
> and that timetype.sh may missing an
> 
>          export LC_TIME=en_US
> 
> or similar as
> 
>  test timetype.sh begins at 2010-05-28+11:01:48
>          timetype.sh[61]: tt[0] is not 2pm
>          timetype.sh[75]: tt[2pm] is not 2pm
> 
> does fail as well.

A few facts:

     * the error occurs only on line using the external
       /usr/bin/printf program and does not happen if
       the builtin is used.

     * if set

            set -o noglob

       the error also does not happen.

    * For /usr/bin/printf '\x81\x5c' the result depends
      on how the variables are handled. That is that

       test $($printf "\x81\x$second") != ${mbchar}
       test $(${printf} "\x81\x$second") != ${mbchar}
       test $($printf "\x81\x${second}") != ${mbchar}
       test $(${printf} "\x81\x${second}") != ${mbchar}
       test $($printf "\x81\x$second") != ${mbchar}

      show different results.

Werner

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers

Reply via email to