r38873 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38872‎ | r38873 | r38874 >
Date:10:19, 8 August 2008
Author:tstarling
Status:old
Tags:
Comment:
Backport r38869
Modified paths:
  • /branches/REL1_13/phase3/includes/Setup.php (modified) (history)

Diff [purge]

Index: branches/REL1_13/phase3/includes/Setup.php
@@ -118,10 +118,8 @@
119119 * Workaround for http://bugs.php.net/bug.php?id=45132
120120 * escapeshellarg() destroys non-ASCII characters if LANG is not a UTF-8 locale
121121 */
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 -}
 122+putenv( 'LC_CTYPE=en_US.UTF-8' );
 123+setlocale( LC_CTYPE, 'en_US.UTF-8' );
126124
127125 if ( !class_exists( 'AutoLoader' ) ) {
128126 require_once( "$IP/includes/AutoLoader.php" );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r38869Don't limit setlocale() hack to PHP 5.2.6, as per comment on bug 14944.tstarling09:37, 8 August 2008

Status & tagging log