macournoyer/thin — pull request #191 by alip (2013-09-09 15:58:42+00:00)
Title: ext/thin_parser: set LC_CTYPE to C

thin fails in unexpected ways when Accept-Language is equal to 'tr' due
to the fact that (e.g.) Turkish locale affects functions like
toupper()/tolower().

Problem lies in the fact that Turkish has different case mappings for
letters "I" and "i". A detailed explanation of the "problem" can be
found at: http://www.i18nguy.com/unicode/turkish-i18n.html

This commit sets LC_CTYPE locale to "C" which is used by functions like
toupper() and tolower().