Index: trunk/phase3/includes/Setup.php |
— | — | @@ -114,6 +114,15 @@ |
115 | 115 | } |
116 | 116 | } |
117 | 117 | |
| 118 | +/** |
| 119 | + * Workaround for http://bugs.php.net/bug.php?id=45132 |
| 120 | + * escapeshellarg() destroys non-ASCII characters if LANG is not a UTF-8 locale |
| 121 | + */ |
| 122 | +if ( version_compare( PHP_VERSION, '5.2.6', '>=' ) ) { |
| 123 | + putenv( 'LC_CTYPE=en_US.UTF-8' ); |
| 124 | + setlocale( LC_CTYPE, 'en_US.UTF-8' ); |
| 125 | +} |
| 126 | + |
118 | 127 | if ( !class_exists( 'AutoLoader' ) ) { |
119 | 128 | require_once( "$IP/includes/AutoLoader.php" ); |
120 | 129 | } |