summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-16 05:35:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-16 05:35:59 +0000
commitfd444f90b5ec99c8081222d91a6e8d172e617bb9 (patch)
tree8d787e874f568ed063477b2e09b75cf19120f7b7 /process.c
parent7539177d7167943c179fa893ac274f0048e4189f (diff)
process.c: use UTF-8
* process.c (open): use UTF-8 version function to support non-ascii path properly. [ruby-core:63185] [Bug #9946] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/process.c b/process.c
index 42fbad0..bf9f42b 100644
--- a/process.c
+++ b/process.c
@@ -86,6 +86,12 @@
# include <mach/mach_time.h>
#endif
+/* define system APIs */
+#ifdef _WIN32
+#undef open
+#define open rb_w32_uopen
+#endif
+
#if defined(HAVE_TIMES) || defined(_WIN32)
static VALUE rb_cProcessTms;
#endif