zhaowu Posted October 23, 2013 Share Posted October 23, 2013 Upgrade to maverick today and notice many of the scripts including some standard ruby gems raise exceptions. After a few hours debugging, the root cause identified is the encoding. Now the default is not utf-8. output from `locale` is LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= chadv 1 Link to comment
Andrew Posted October 23, 2013 Share Posted October 23, 2013 Upgrade to maverick today and notice many of the scripts including some standard ruby gems raise exceptions. After a few hours debugging, the root cause identified is the encoding. Now the default is not utf-8. output from `locale` is LANG= LC_COLLATE="C" LC_CTYPE="C" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL= Alfred doesn't import any profiles so this may be a constraint you'll have to work with in your scripts. I'm going to move this to the workflow help section for now to see if anybody can shed some light on the situation and offer a workaround. Link to comment
zhaowu Posted October 23, 2013 Author Share Posted October 23, 2013 I can prefix `LANG=en_US.UTF-8` before command to solve this. However, if I launch an application like SourceTree from Alfred. Then common command like `hub` would fail to execute from SourceTree. Is there any place to set default LANG globally? Link to comment
zhaowu Posted October 23, 2013 Author Share Posted October 23, 2013 found the solution: set it in /etc/launchd.conf setenv LANG en_US.UTF-8 setenv LC_ALL en_US.UTF-8 chadv 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now