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.
This commit is contained in:
Mike McQuaid 2012-08-02 16:52:33 +01:00
parent e8776194ac
commit c632d733bc

View File

@ -9,8 +9,12 @@ module HomebrewEnvExtension
delete('CLICOLOR_FORCE') # autotools doesn't like this delete('CLICOLOR_FORCE') # autotools doesn't like this
remove_cc_etc remove_cc_etc
# Mountain Lion no longer ships a few .pcs; make sure we pick up our versions
if MacOS.mountain_lion? 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', prepend 'PKG_CONFIG_PATH',
HOMEBREW_REPOSITORY/'Library/Homebrew/pkgconfig', ':' HOMEBREW_REPOSITORY/'Library/Homebrew/pkgconfig', ':'
end end