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

Fix problems when locale is not en_US #90

Merged
merged 1 commit into from
Oct 20, 2019
Merged

Fix problems when locale is not en_US #90

merged 1 commit into from
Oct 20, 2019

Conversation

bighi
Copy link
Contributor

@bighi bighi commented Jul 18, 2019

When the locale is not en_US, the time string will be in another language, and Python's %c can't parse it unless it knows what locale it is. This problem was making memacs_mumail not run for me, because my system is set up to use Brazilian Portuguese.

My changes pick up the system locale. Also I removed an encode() call that was not needed and was causing problems. Now it works with my pt_BR locale!

This should even fix issue #43. Maybe.

When the locale is not en_US, the time string will be in another language, and Python's %c can't parse it unless it knows what locale it is.

My changes pick up the system locale.

Also I removed an encode() call that was not needed and was causing problems.

This should even fix issue #43
memacs/mu.py Show resolved Hide resolved
@novoid novoid merged commit ba64f1a into novoid:master Oct 20, 2019
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