Axarva / dotfiles-2.0

XMonad™️. Widgets go brr.
MIT License
1.72k stars 156 forks source link

changed getram scripts to use en_US.UTF-8 as locale for numbers #163

Closed Schievel1 closed 1 year ago

Schievel1 commented 1 year ago

Depending on the settings of your PC this line with printf could return invalid number because a decimal fraction is not always represented with a . but with a , instead. Putting LC_NUMERIC="en_US.UTF-8" sets the locale for numbers to en_US.UTF-8 (which uses the . of course) for the script only.

See also https://stackoverflow.com/questions/12845997/printf-command-inside-a-script-returns-invalid-number

Axarva commented 1 year ago

Thank you! Merging now.