Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit f29a751

Browse files
committed
PowerFS don't works if Command Line "enable" and accent (Windows OS)
1 parent 3fe3764 commit f29a751

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/core/classes/class.AJXP_Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ public static function runCommandInBackground($cmd, $logFile)
388388
} else {
389389
$basePath = str_replace("/", DIRECTORY_SEPARATOR, AJXP_INSTALL_PATH);
390390
$tmpBat = implode(DIRECTORY_SEPARATOR, array( $basePath, "data","tmp", md5(time()).".bat"));
391+
$cmd = "@chcp 1252 > nul \r\n".$cmd;
391392
$cmd .= "\n DEL ".chr(34).$tmpBat.chr(34);
392393
AJXP_Logger::debug("Writing file $cmd to $tmpBat");
393394
file_put_contents($tmpBat, $cmd);

0 commit comments

Comments
 (0)