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

Re: crashing bug here with LANG=C printf "%1.1f" 23.2



Matthias Kopfermann wrote:
> 
> for ((i=1;i<100;i+=.01)) ; { LANG=C printf "%1.1f\n" $i ; }
> gives me a segfault instantly here.
> the same can happen when just doing LANG='C' printf "%1.1f\n" 23.2

Seems that can be simplified a bit to get the seg fault. The following
seems to be sufficient:

   zsh -f
   LANG=C echo hello
   LANG=C echo hello

Use of the "LANG" environment variable is significant.

Oliver



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