G2-Games / welcome.sh

A nice welcome script for Bash and Zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid Number Error (printf)

ClonkDroid opened this issue · comments

Every run of the Script, printf complains about an invalid number:

./welcome.sh: Zeile 164: printf: 37.378: Ungültige Zahl.
Translation:
./welcome.sh: Line 164: printf: 37.378: Invalid Number.

The number is random every run, considering the error is spawned in the random number generator.

FIX:
adding export LC_NUMERIC="en_US.UTF-8" to my .bashrc fixed it.
Maybe that should be added to the description

commented

Interesting, I'll look into it, I assume this is a unicode issue then

commented

I think my solution will be to add export LC_NUMERIC="en_US.UTF-8" to the beginning of the Welcome script, to ensure numbers are processed properly

commented

@ClonkDroid I pushed an update that should hopefully fix it, if you update you should be good!

Sadly, adding it to the end of the file doesnt work for some reason. I have created a new commit placing the statement in the right place

commented

Oh, thank you. I'll merge it, and push an update