mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (pipe_open): fix typo.
* win32/win32.c (CreateChild): first argument to CreateProcess() must have path, not just basename. diff -U2 io.c io.c --- io.c 20 Feb 2004 01:02:56 -0000 +++ io.c 20 Feb 2004 02:56:08 -0000 @@ -2696,5 +2697,5 @@ rb_thread_sleep(1); break; - defined: + default: rb_sys_fail(pname); break; only in patch2: --- win32/win32.c 19 Feb 2004 09:08:23 -0000 1.112 +++ win32/win32.c 20 Feb 2004 02:49:04 -0000 @@ -14,2 +14,3 @@ #include "rubysig.h" +#include "dln.h" #include <fcntl.h> @@ -903,3 +904,14 @@ if (prog) { - shell = prog; + char *p = dln_find_exe(prog, NULL); + if (!p) { + shell = prog; + } + else { + shell = p; + while (*p) { + if ((unsigned char)*p == '/') + *p = '\\'; + p = CharNext(p); + } + } } git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba3a872a68
commit
fc421cf6ac
1 changed files with 42 additions and 1 deletions
41
ChangeLog
41
ChangeLog
|
@ -1,3 +1,44 @@
|
|||
Fri Feb 20 12:55:27 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* io.c (pipe_open): fix typo.
|
||||
|
||||
* win32/win32.c (CreateChild): first argument to CreateProcess() must
|
||||
have path, not just basename.
|
||||
|
||||
diff -U2 io.c io.c
|
||||
--- io.c 20 Feb 2004 01:02:56 -0000
|
||||
+++ io.c 20 Feb 2004 02:56:08 -0000
|
||||
@@ -2696,5 +2697,5 @@
|
||||
rb_thread_sleep(1);
|
||||
break;
|
||||
- defined:
|
||||
+ default:
|
||||
rb_sys_fail(pname);
|
||||
break;
|
||||
only in patch2:
|
||||
--- win32/win32.c 19 Feb 2004 09:08:23 -0000 1.112
|
||||
+++ win32/win32.c 20 Feb 2004 02:49:04 -0000
|
||||
@@ -14,2 +14,3 @@
|
||||
#include "rubysig.h"
|
||||
+#include "dln.h"
|
||||
#include <fcntl.h>
|
||||
@@ -903,3 +904,14 @@
|
||||
if (prog) {
|
||||
- shell = prog;
|
||||
+ char *p = dln_find_exe(prog, NULL);
|
||||
+ if (!p) {
|
||||
+ shell = prog;
|
||||
+ }
|
||||
+ else {
|
||||
+ shell = p;
|
||||
+ while (*p) {
|
||||
+ if ((unsigned char)*p == '/')
|
||||
+ *p = '\\';
|
||||
+ p = CharNext(p);
|
||||
+ }
|
||||
+ }
|
||||
}
|
||||
|
||||
Thu Feb 19 23:24:16 2004 Dave Thomas <dave@pragprog.com>
|
||||
|
||||
* lib/rdoc/generators/html_generator.rb (Generators::HtmlClass::build_attribute_list):
|
||||
|
|
Loading…
Reference in a new issue