Page MenuHomePhabricator

D15675.id37768.diff
No OneTemporary

D15675.id37768.diff

diff --git a/src/xsprintf/PhutilCommandString.php b/src/xsprintf/PhutilCommandString.php
--- a/src/xsprintf/PhutilCommandString.php
+++ b/src/xsprintf/PhutilCommandString.php
@@ -11,7 +11,7 @@
public function __construct(array $argv) {
$this->argv = $argv;
- $this->escapingMode = self::MODE_DEFAULT;
+ $this->escapingMode = phutil_is_windows() ? self::MODE_POWERSHELL : self::MODE_DEFAULT;
// This makes sure we throw immediately if there are errors in the
// parameters.
diff --git a/src/xsprintf/__tests__/PhutilCsprintfTestCase.php b/src/xsprintf/__tests__/PhutilCsprintfTestCase.php
--- a/src/xsprintf/__tests__/PhutilCsprintfTestCase.php
+++ b/src/xsprintf/__tests__/PhutilCsprintfTestCase.php
@@ -29,6 +29,8 @@
$this->assertEqual(
'\'#\'',
(string)$cmd);
+ } else {
+ $this->assertSkipped(pht("This test doesn't work on Windows."));
}
}

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 15, 2:11 PM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6713107
Default Alt Text
D15675.id37768.diff (918 B)

Event Timeline