Hi! ----
I just got some feedback about what seems to be a locale-specific bug in ksh93: Trying the following in ksh93q (SuSE Linux 10.0) ... -- snip -- #!/bin/ksh (env - ksh -x -c '( echo $(( pow(1.0,Inf) )) )') (env - ksh -x -c '(export LC_ALL=en_US.UTF-8 ; echo $(( pow(1.0,Inf) )) )') (env - ksh -x -c '(export LC_ALL=ja_JP.UTF-8 ; echo $(( pow(1.0,Inf) )) )') (env - ksh -x -c '(export LC_ALL=de_DE.UTF-8 ; echo $(( pow(1.0,Inf) )) )') (env - ksh -x -c '(export LC_ALL=de_DE.ISO8859-15 ; echo $(( pow(1.0,Inf) )) )') (env - ksh -x -c '(export LC_ALL=C ; echo $(( pow(1.0,Inf) )) )') (env - ksh -x -c '(export LC_ALL=en_US ; echo $(( pow(1.0,Inf) )) )') -- snip -- results in -- snip -- + echo 1 1 + LC_ALL=en_US.UTF-8 + export LC_ALL ksh: line 1: pow(1.0,Inf) : arithmetic syntax error + LC_ALL=ja_JP.UTF-8 + export LC_ALL ksh: line 1: pow(1.0,Inf) : arithmetic syntax error + LC_ALL=de_DE.UTF-8 + export LC_ALL ksh: line 1: pow(1.0,Inf) : arithmetic syntax error + LC_ALL=de_DE.ISO8859-15 + export LC_ALL + echo 1 1 + LC_ALL=C + export LC_ALL + echo 1 1 + LC_ALL=en_US + export LC_ALL ksh: line 1: pow(1.0,Inf) : arithmetic syntax error -- snip -- I tried the same with ksh93r+_20060630 in the ksh93-integration prototype002 tree on Solaris x86 B37 -- snip -- (env - LD_LIBRARY_PATH=$ROOT/lib i386/ksh -x -c '( echo $(( pow(1.0,Inf) )) )') (env - LD_LIBRARY_PATH=$ROOT/lib i386/ksh -x -c '(export LC_ALL=en_US.UTF-8 ; echo $(( pow(1.0,Inf) )) )') (env - LD_LIBRARY_PATH=$ROOT/lib i386/ksh -x -c '(export LC_ALL=ja_JP.UTF-8 ; echo $(( pow(1.0,Inf) )) )') (env - LD_LIBRARY_PATH=$ROOT/lib i386/ksh -x -c '(export LC_ALL=de_DE.UTF-8 ; echo $(( pow(1.0,Inf) )) )') (env - LD_LIBRARY_PATH=$ROOT/lib i386/ksh -x -c '(export LC_ALL=de_DE.ISO8859-15 ; echo $(( pow(1.0,Inf) )) )') (env - LD_LIBRARY_PATH=$ROOT/lib i386/ksh -x -c '(export LC_ALL=C ; echo $(( pow(1.0,Inf) )) )') (env - LD_LIBRARY_PATH=$ROOT/lib i386/ksh -x -c '(export LC_ALL=en_US ; echo $(( pow(1.0,Inf) )) )') -- snip -- and got the following results -- snip -- + echo 1 1 + LC_ALL=en_US.UTF-8 + export LC_ALL + echo 1 1 + LC_ALL=ja_JP.UTF-8 + export LC_ALL i386/ksh: line 1: pow(1.0,Inf) : arithmetic syntax error + LC_ALL=de_DE.UTF-8 + export LC_ALL i386/ksh: line 1: pow(1.0,Inf) : arithmetic syntax error + LC_ALL=de_DE.ISO8859-15 + export LC_ALL i386/ksh: line 1: pow(1.0,Inf) : arithmetic syntax error + LC_ALL=C + export LC_ALL + echo 1 1 + LC_ALL=en_US + export LC_ALL i386/ksh: line 1: pow(1.0,Inf) : arithmetic syntax error -- snip -- Something is going wrong here (CC:'ing the i18n-discuss at opensolaris.org in the hope that Ienup may know what may cause this...) ... any ideas where this bug may hide ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)
