novoid / Memacs

What did I do on February 14th 2007? Visualize your (digital) life in Org-mode
GNU General Public License v3.0
1.01k stars 66 forks source link

Fix problems when locale is not en_US #90

Closed bighi closed 4 years ago

bighi commented 5 years ago

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.