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

Allow python to use default locale instead of requiring GB #36

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Allow python to use default locale instead of requiring GB #36

merged 1 commit into from
Sep 1, 2022

Conversation

atf1206
Copy link
Contributor

@atf1206 atf1206 commented Mar 20, 2022

myLocale=locale.setlocale(category=locale.LC_ALL, locale="en_GB.UTF-8")

This fails on my (windows7/10) machines due to missing the locale "en_GB.UTF-8". This prevents this script (q_routine.py) from running, and ultimately blocks all the chart/graph functionality of sublime-q (i.e. pressing f4 does nothing).

I think the correct workaround is to just use locale="" as this should allow Python to use a default locale on the machine. This works on my US Windows/MacOS machines, but please do try on some on your end to confirm!

As an alternative, we could also wrap setlocale in a try/except block. I do not think it should be necessary for users to have en_GB locale installed. Let me know what you think.

Thanks.

@komsit37 komsit37 merged commit c4f98f6 into komsit37:master Sep 1, 2022
@komsit37
Copy link
Owner

komsit37 commented Sep 1, 2022

Apologize for the delay, I missed this one

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

Successfully merging this pull request may close these issues.

2 participants