forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
msys2-runtime/0054-Revert-cygwin-only-expose-dev-con-in-out-sole-when-s.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,34 @@ | ||
From bcbd8d5669616a572604b84271fa304361007e3e Mon Sep 17 00:00:00 2001 | ||
From: Yaakov Selkowitz <yselkowi@redhat.com> | ||
Date: Mon, 11 Sep 2017 13:21:46 -0500 | ||
Subject: [PATCH 54/N] Revert "cygwin: only expose /dev/con{in,out,sole} when | ||
started from a Windows console" | ||
|
||
This caused serious regressions when running from a cmd window: | ||
|
||
https://cygwin.com/ml/cygwin/2017-09/msg00114.html | ||
|
||
This reverts commit b706c6b479422d31f0124b92c21b4cb536bbddff. | ||
|
||
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com> | ||
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> | ||
--- | ||
winsup/cygwin/fhandler.h | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h | ||
index cd73e6e..153e384 100644 | ||
--- a/winsup/cygwin/fhandler.h | ||
+++ b/winsup/cygwin/fhandler.h | ||
@@ -1439,7 +1439,7 @@ private: | ||
ssize_t __stdcall write (const void *ptr, size_t len); | ||
void doecho (const void *str, DWORD len) { (void) write (str, len); } | ||
int close (); | ||
- static bool exists () {return shared_console_info && !!GetConsoleCP ();} | ||
+ static bool exists () {return !!GetConsoleCP ();} | ||
|
||
int tcflush (int); | ||
int tcsetattr (int a, const struct termios *t); | ||
-- | ||
2.9.0 | ||
|
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