berdav / greenpass

Scriptable green pass / Digital Covid Certificate verifier.
GNU Lesser General Public License v3.0
53 stars 21 forks source link

macOS (new?) issue #43

Open sh4tteredd opened 2 years ago

sh4tteredd commented 2 years ago

Hi, I used to use this utility and it worked great! But know on the exact machine (latest 12.3 arm64 M1), probably after an update, it don't work anymore. I tried with different DGC, same result

Screenshot 2022-03-30 at 15 33 24

Is this a know issue on mac? Or what

Thanks!

egglessness commented 2 years ago

Yes, I can confirm the issue in macOS 12.4. This is due to the fact that locale environment variables are improperly populated.

As a workaround, you can set the following environment variables before firing up the script:

export LC_ALL=en_US.UTF-8  
export LANG=en_US.UTF-8

I think the script should fallback to en_US when the locale.getdefaultlocale()[0] returns None.