aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorMike McQuaid2012-08-02 16:52:33 +0100
committerMike McQuaid2012-08-02 20:26:01 +0100
commitc632d733bc717f8129db3a46c5bfafef1d8aab46 (patch)
treee5956fcca76cd4c97aa2dd6e8b9d1dab2aaae7fd /Library/Homebrew/extend
parente8776194ac60ace8066a64f6a7410da9357375e2 (diff)
downloadbrew-c632d733bc717f8129db3a46c5bfafef1d8aab46.tar.bz2
Fix Mountain Lion sed by setting LANG.
It's also necessary to delete LC_ALL or it overrides the new LANG. LC_COLLATE is the problem variable but is affected by LANG and LC_ALL so just use them instead. Extends the fix made to geoip in dc955c. Fix Homebrew/homebrew#11728, fix Homebrew/homebrew#12890, fix Homebrew/homebrew#13653, fix Homebrew/homebrew#13734, fix Homebrew/homebrew#13787, fix Homebrew/homebrew#13818.
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ENV.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index b6240d8e3..b07e6d006 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -9,8 +9,12 @@ module HomebrewEnvExtension
delete('CLICOLOR_FORCE') # autotools doesn't like this
remove_cc_etc
- # Mountain Lion no longer ships a few .pcs; make sure we pick up our versions
if MacOS.mountain_lion?
+ # Fix issue with sed barfing on unicode characters on Mountain Lion.
+ delete('LC_ALL')
+ self['LANG']="C"
+
+ # Mountain Lion no longer ships a few .pcs; make sure we pick up our versions
prepend 'PKG_CONFIG_PATH',
HOMEBREW_REPOSITORY/'Library/Homebrew/pkgconfig', ':'
end