summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog7
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c35
2 files changed, 7 insertions, 35 deletions
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index 1ba4c893545..47da30ca613 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -1,10 +1,15 @@
+2014-08-22 Akira Kakuto <kakuto@fuk.kinidai.ac.jp>
+
+ * texmfmp.c: Symplify support of multibyte file names, by
+ updating fsyscp_popen in kpathsea.
+
2014-08-22 Peter Breitenlohner <peb@mppmu.mpg.de>
* texmfmp.c: Avoid several compiler warnings (Windows only).
2014-08-22 Akira Kakuto <kakuto@fuk.kinidai.ac.jp>
- * texmfmp.c: Support multibyte filenames in pipe (Windows only).
+ * texmfmp.c: Support multibyte file names in pipe (Windows only).
2014-07-23 Akira Kakuto <kakuto@fuk.kinidai.ac.jp>
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index b9ca7b4676a..9a6fec3137e 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -490,42 +490,9 @@ shell_cmd_is_allowed (const char *cmd, char **safecmd, char **cmdname)
#ifdef WIN32
#undef system
#define system fsyscp_system
-
#if ENABLE_PIPES
-static int is_include_space(const char *s)
-{
- char *p;
- p = strchr(s, ' ');
- if(p) return 1;
- p = strchr(s, '\t');
- if(p) return 1;
- return 0;
-}
-
-static FILE *wbinpopen(const char *cmd, const char *mode)
-{
- assert(cmd && mode);
- if (is_include_space (cmd)) {
- FILE *ret;
- const char *p;
- char *cmd2, *q;
- cmd2 = xmalloc (strlen (cmd) + 3);
- q = cmd2;
- p = cmd;
- *q++= '\"';
- while(*p)
- *q++ = *p++;
- *q++ = '\"';
- *q = '\0';
- ret = fsyscp_popen (cmd2, mode);
- free (cmd2);
- return ret;
- } else {
- return fsyscp_popen (cmd, mode);
- }
-}
#undef popen
-#define popen wbinpopen
+#define popen fsyscp_popen
#endif /* ENABLE_PIPES */
#endif /* WIN32 */