forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
winpty-git: Update to 0.2.2.371.a4ba242. Restore removed patch
- Loading branch information
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
winpty-git/0001-Apply-POSIX-to-Win-conversion-on-all-arguments-on-MSYS.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 08c2316f2f7791bc3a9243aabe8df84aaaf8b205 Mon Sep 17 00:00:00 2001 | ||
From: David Macek <[email protected]> | ||
Date: Sat, 14 Nov 2015 11:27:43 +0100 | ||
Subject: [PATCH] Apply POSIX-to-Win conversion on all arguments on MSYS | ||
|
||
--- | ||
src/unix-adapter/main.cc | 10 ++++++++++ | ||
1 file changed, 10 insertions(+) | ||
|
||
diff --git a/unix-adapter/main.cc b/unix-adapter/main.cc | ||
index da19735..b8092a0 100644 | ||
--- a/src/unix-adapter/main.cc | ||
+++ b/src/unix-adapter/main.cc | ||
@@ -412,6 +412,16 @@ int main(int argc, char *argv[]) | ||
exit(1); | ||
} | ||
|
||
+#if defined(__MSYS__) | ||
+ { | ||
+ int argc = args.childArgv.size(); | ||
+ int argi = 1; | ||
+ for (; argi < argc; ++argi) { | ||
+ args.childArgv[argi] = convertPosixPathToWin(args.childArgv[argi]); | ||
+ } | ||
+ } | ||
+#endif | ||
+ | ||
{ | ||
// Start the child process under the console. | ||
args.childArgv[0] = convertPosixPathToWin(args.childArgv[0]); | ||
-- | ||
2.6.2.windows.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters