composer/composer — pull request #201 by msonnabaum (2012-01-12 03:13:26+00:00)
Title: Add detect_unicode=0 workaround to shebang

Since there doesn't appear to be a workaround for https://github.com/composer/composer/issues/85 and it's a *really* awful bug to run into the first time you try to use composer, it seems like the easiest thing to do is just add this arg to the shebang.

Recompiling the phar with this change fixes the issue for me on OSX. It won't cover the case where someone runs `php composer.phar`, but it works on any global installations.