Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printf does not work when LC_NUMERIC is using comma instead of dot #3

Open
tetrode opened this issue Jul 9, 2016 · 2 comments
Open

Comments

@tetrode
Copy link

tetrode commented Jul 9, 2016

My locale is LC_NUMERIC=de_BE.UTF-8 which is using a comma for decimal places. This causes problems with the printf statement. Solution: put the following line before the printf statement

    export LC_NUMERIC="en_US.UTF-8"

Mark

@arikogan
Copy link
Owner

arikogan commented Jul 9, 2016

Thanks for the good tip @tetrode

@tetrode
Copy link
Author

tetrode commented Jul 9, 2016

Another one - my MySQL is not running constantly on my development machine, when it is not running the scripts gives errors.

I solved it as follows. Just before cd $DIR I inserted

#
# only run when mysql is running (mysql user running mysqld)
#
if ! ps auwx | grep ^mysql | grep mysqld > /dev/null ; then
    exit
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants