From 956100bc2e49c53fea321d5b493827ec8f26cc97 Mon Sep 17 00:00:00 2001 From: usa Date: Sun, 27 Dec 2015 12:03:45 +0000 Subject: [PATCH] * process.c (rb_execarg_addopt): need to convert to ospath. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 2 ++ process.c | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index b1afd63407..cb944c7bf9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ Sun Dec 27 20:54:22 2015 NAKAMURA Usaku * process.c: use rb_w32_uchdir() instead of plain chdir() on Windows. reported by naruse via twitter. + * process.c (rb_execarg_addopt): need to convert to ospath. + Sun Dec 27 20:00:31 2015 SHIBATA Hiroshi * enc/x_emoji.h: fix dead-link. diff --git a/process.c b/process.c index e2ecceb438..fdf75ee019 100644 --- a/process.c +++ b/process.c @@ -1713,6 +1713,7 @@ rb_execarg_addopt(VALUE execarg_obj, VALUE key, VALUE val) rb_raise(rb_eArgError, "chdir option specified twice"); } FilePathValue(val); + val = rb_str_encode_ospath(val); eargp->chdir_given = 1; eargp->chdir_dir = hide_obj(EXPORT_DUP(val)); }