Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Unified Diff: Modules/readline.c

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Modules/python.c ('k') | Modules/selectmodule.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Modules/readline.c Thu Dec 27 23:52:36 2012 +0200
+++ b/Modules/readline.c Thu Dec 27 17:35:12 2012 -0500
@@ -11,6 +11,11 @@
#include <errno.h>
#include <sys/time.h>
+#ifdef MS_WINDOWS
+/* on windows select don't work on files */
+#undef HAVE_SELECT
+#endif
+
#if defined(HAVE_SETLOCALE)
/* GNU readline() mistakenly sets the LC_CTYPE locale.
* This is evil. Only the user or the app's main() should do this!
@@ -905,6 +910,10 @@
/* Allow $if term= in .inputrc to work */
rl_terminal_name = getenv("TERM");
#endif
+#ifdef MS_WINDOWS
+ /* FIXME: need more test before to skip this hack */
+ rl_terminal_name = "dumb";
+#endif
/* Force rebind of TAB to insert-tab */
rl_bind_key('\t', rl_insert);
/* Bind both ESC-TAB and ESC-ESC to the completion function */
@@ -1176,7 +1185,10 @@
+#ifndef MS_WINDOWS
+ /* FIXME: windows readline(prompt) may not work ? */
PyOS_ReadlineFunctionPointer = call_readline;
+#endif
setup_readline();
return m;
}
« no previous file with comments | « Modules/python.c ('k') | Modules/selectmodule.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+