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 TypeError if LANG is not set in on osx #232

Merged
merged 2 commits into from
Nov 11, 2016

Conversation

ForeverWintr
Copy link
Contributor

In macosx.uniqueid, $LANG is retrieved with old_lang = environ.get('LANG'). This means that if LANG is not set, old_lang will be none. When plyer later tries to restore the original value of lang, putenv will complain that we're not supplying a string. I've corrected this by popping the inserted LANG value if old_lang is none.

In macosx.uniqueid, `$LANG` is retrieved with `old_lang = environ.get('LANG')`. This means that if `LANG` is not set, `old_lang` will be none. When plyer later tries to restore the original value of lang, `putenv` will complain that we're not supplying a string.  I've corrected this by popping the inserted `LANG` value if `old_lang` is none.
@akshayaurora
Copy link
Member

@ForeverWintr thanks!

@akshayaurora akshayaurora reopened this Nov 11, 2016
@akshayaurora akshayaurora merged commit 02c0d96 into kivy:master Nov 11, 2016
@ForeverWintr ForeverWintr deleted the patch-1 branch November 15, 2016 21:01
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