Jump to content

Shell script locale in Maverick


Recommended Posts

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=
 
 
Link to comment

 

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...