Skip to content

Commit 6d25d68

Browse files
committed
ext/pty
1 parent e641b74 commit 6d25d68

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ext/pty/pty.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -881,14 +881,14 @@ pty_getpty(int argc, VALUE *argv, VALUE self)
881881
}
882882

883883
if (eargp->use_shell) {
884-
pid = rb_w32_uspawn_inherit(P_NOWAIT,
885-
RSTRING_PTR(progv), 0, CP_UTF8, actions);
884+
pid = rb_w32_uspawn_spec(P_NOWAIT,
885+
RSTRING_PTR(progv), 0, actions);
886886
}
887887
else {
888888
char **argvp = ARGVSTR2ARGV(eargp->invoke.cmd.argv_str);
889-
pid = rb_w32_uaspawn_inherit(P_NOWAIT,
890-
progv ? RSTRING_PTR(progv) : 0,
891-
argvp, 0, CP_UTF8, actions);
889+
pid = rb_w32_uaspawn_spec(P_NOWAIT,
890+
progv ? RSTRING_PTR(progv) : 0,
891+
argvp, actions);
892892
}
893893

894894
rb_execarg_parent_end(execarg_obj);

0 commit comments

Comments
 (0)