firecat53 / urlscan

Mutt and terminal url selector (similar to urlview)
GNU General Public License v2.0
214 stars 38 forks source link

locale.setlocale(locale.LC_ALL, '') does not work in Mac OS #25

Closed khapota closed 8 years ago

khapota commented 9 years ago

locale.Error: unsupported locale setting

firecat53 commented 9 years ago

Does anything here help at all? Sorry, but I have no Macs for testing on or any experience with Macs.

khapota commented 9 years ago

Thanks. I added:

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

to my bashrc and it works.

khapota commented 9 years ago

Hi, it will work for MacOs with this code:

locale.setlocale(locale.LC_ALL)

omit [locale] follow this document: https://docs.python.org/2/library/locale.html#locale.setlocale

Please check with other OS. Thanks.

firecat53 commented 8 years ago

I think that this is just a matter of making sure your environment is setup correctly. setlocale(locale.LC_ALL, '') per the docs you linked sets the locale "for all categories to the user's default settings". Given that, I'm going to close this issue, as it seems more an environment issue than a code issue. If you have a different take, feel free to reopen with more information.

Thanks! Scott