Skip to content

Commit

Permalink
fix to get default locale under windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizunashi Mana committed Apr 13, 2016
1 parent 547aaae commit 48d4f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/phing/system/io/Win32FileSystem.php
Expand Up @@ -630,7 +630,7 @@ public function lister($f)
*/
private function fixEncoding($strPath)
{
$codepage = 'CP' . trim(strstr(setlocale(LC_CTYPE, 0), '.'), '.');
$codepage = 'CP' . trim(strstr(setlocale(LC_CTYPE, ''), '.'), '.');
if (function_exists('iconv')) {
$strPath = iconv('UTF-8', $codepage . '//IGNORE', $strPath);
} elseif (function_exists('mb_convert_encoding')) {
Expand Down

0 comments on commit 48d4f72

Please sign in to comment.