[#12543] Ruby Conference 0.3 — greentea@...2.so-net.ne.jp (Tomoyuki Kosimizu)

こんにちは、こしみずです。

21 messages 1999/03/04
[#12570] Re: Ruby Conference 0.3 — matz@... (Yukihiro Matsumoto) 1999/03/05

まつもと ゆきひろです

[#12571] Re: Ruby Conference 0.3 — Takaaki Higuchi - Technology Marketing <Takaaki.Higuchi@...> 1999/03/05

> | >18日あたり東京でRuby Conference 0.3(単なる宴会)を開きましょうか?

[#12577] Re: Ruby Conference 0.3 — matz@... (Yukihiro Matsumoto) 1999/03/05

まつもと ゆきひろです

[#12645] Re: Ruby Conference 0.3 — KIMURA Koichi <kimura@...> 1999/03/08

[#12546] [閑話] Ruby Conference 0.3 参加したいぃ — Atsuko Yoshida <atsuko@...>

こんにちは。あつこです。

17 messages 1999/03/05
[#12548] Re: [ 閑話] Ruby Conference 0.3 参加したいぃ — KIMURA Koichi <kimura@...> 1999/03/05

[#12573] alternative name of iterator — Shugo Maeda <shugo@...>

前田です。

49 messages 1999/03/05
[#12584] Re: alternative name of iterator — matz@... (Yukihiro Matsumoto) 1999/03/05

まつもと ゆきひろです

[#12641] Re: alternative name of iterator — moochan <moochan@...> 1999/03/08

moochan です.

[#12642] Re: alternative name of iterator — matz@... (Yukihiro Matsumoto) 1999/03/08

まつもと ゆきひろです

[#12643] Re: alternative name of iterator — moochan <moochan@...> 1999/03/08

moochan です.

[#12644] Re: alternative name of iterator — matz@... (Yukihiro Matsumoto) 1999/03/08

まつもと ゆきひろです

[#12661] Re: alternative name of iterator — moochan <moochan@...> 1999/03/09

moochan です.

[#12662] Re: alternative name of iterator — matz@... (Yukihiro Matsumoto) 1999/03/09

まつもと ゆきひろです

[#12666] Re: alternative name of iterator — moochan <moochan@...> 1999/03/09

moochan です.

[#12590] kconv SJIS — Kikutani Makoto <kikutani@...>

=?ISO-2022-JP?B? ではじまるBエンコードされたサブジェクトは

20 messages 1999/03/06

[#12695] 第 2 回 OMG 分散コンピューティング・セミナー: CORBA3.0 の詳説と CORBA 活用の実際 — Junichi Suzuki <jun-sk@...>

各位.

19 messages 1999/03/10
[#12911] HORB for Ruby? — Shugo Maeda <shugo@...> 1999/03/16

前田です。

[#12707] Re: operater bind order ? — Inaba Hiroto <inaba@...>

稲葉です.

16 messages 1999/03/10
[#12709] Re: operater bind order ? — KIMURA Koichi <kimura@...> 1999/03/10

[#12727] Making of Interval class. — moochan <moochan@...>

moochan です.

40 messages 1999/03/10
[#12742] Re: Making of Interval class. — Shugo Maeda <shugo@...> 1999/03/11

前田です。

[#12746] Re: Making of Interval class. — moochan <moochan@...> 1999/03/11

moochan です.

[#12728] Time + 1M — Wakou Aoyama <wakou@...>

青山です。

30 messages 1999/03/10
[#12731] Re: Time + 1M — Tadayoshi Funaba <tadf@...> 1999/03/10

ふなばです。

[#12772] Re: Time + 1M — IKARASHI Akira <ikarashi@...> 1999/03/11

五十嵐です。

[#12774] Re: Time + 1M — Tadayoshi Funaba <tadf@...> 1999/03/11

ふなばです。

[#12775] Re: Time + 1M — IKARASHI Akira <ikarashi@...> 1999/03/11

五十嵐です。

[#12850] Ruby Conference 0.3 where ? when ? — ISII takesi <isii@...>

石井です。

89 messages 1999/03/15
[#12852] Re: Ruby Conference 0.3 where ? when ? — matz@... (Yukihiro Matsumoto) 1999/03/15

まつもと ゆきひろです

[#12859] Re: Ruby Conference 0.3 where ? when ? — hisanori@... 1999/03/15

松尾です。

[#12860] Re: Ruby Conference 0.3 where ? when ? — matz@... (Yukihiro Matsumoto) 1999/03/15

まつもと ゆきひろです

[#12861] Re: Ruby Conference 0.3 where ? when ? — hisanori@... 1999/03/15

松尾です。

[#12862] Re: Ruby Conference 0.3 where ? when ? — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/15

なひです.

[#12864] Re: Ruby Conference 0.3 where ? when ? — matz@... (Yukihiro Matsumoto) 1999/03/15

まつもと ゆきひろです

[#12870] Re: Ruby Conference 0.3 where ? when ? — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/15

なひです.

[#12872] Re: Ruby Conference 0.3 where ? when ? — matz@... (Yukihiro Matsumoto) 1999/03/15

まつもと ゆきひろです

[#12888] signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/15

なひです.

[#12896] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — matz@... (Yukihiro Matsumoto) 1999/03/16

まつもと ゆきひろです

[#12960] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/17

なひです.

[#12962] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — 中村暁史 <anakamur@...> 1999/03/17

[#12993] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/18

なひです.

[#12995] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — 中村暁史 <anakamur@...> 1999/03/18

[#13009] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/19

なひです.

[#13010] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/19

なひです.

[#13011] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — KIMURA Koichi <kimura@...> 1999/03/19

[#13013] Re: signal handler in Ruby( was Re: Ruby Conference 0.3 where ? when ? ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/19

なひです.

[#13016] Re: signal handler in Ruby( was Re: Ruby Conference 0.3 where ? when ? ) — 中村暁史 <anakamur@...> 1999/03/19

[#13023] Re: signal handler in Ruby( was Re: Ruby Conference 0.3 where ? when ? ) — "NAKAMURA, Hiroshi" <nakahiro@...> 1999/03/19

なひです.

[#13012] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — 中村暁史 <anakamur@...> 1999/03/19

[#13037] Re: signal handler in Ruby ( was Re: Ruby Conference 0.3 where ? when ? ) — keiju@... (石塚圭樹 ) 1999/03/20

けいじゅ@日本ラショナルソフトウェアです.

[#12918] Sieve of Eratosthenes (Re: [ruby-dev:6094]) — Shin-ichiro Hara <sinara@...>

原です。

29 messages 1999/03/16
[#12924] delete during each (Re: Sieve of Eratosthenes) — matz@... (Yukihiro Matsumoto) 1999/03/17

まつもと ゆきひろです

[#12930] Re: delete during each (Re: Sieve of Eratosthenes) — Shin-ichiro Hara <sinara@...> 1999/03/17

原です。

[#12932] Re: delete during each (Re: Sieve of Eratosthenes) — matz@... (Yukihiro Matsumoto) 1999/03/17

まつもと ゆきひろです

[#12934] Re: delete during each (Re: Sieve of Eratosthenes) — Shin-ichiro Hara <sinara@...> 1999/03/17

原です。

[#13091] FAQ for /:|) — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

17 messages 1999/03/23

[#13121] 全角文字列の分割方法について — goto@...

初めまして、後藤@横河工事(橋梁技術者)です。

17 messages 1999/03/24
[#13122] Re: 全角文字列の分割方法について — matz@... (Yukihiro Matsumoto) 1999/03/24

まつもと ゆきひろです

[#13123] Re: 全角文字列の分割方法について — goto@... 1999/03/24

後藤@横河工事(橋梁技術者)です。お世話になります。

[#13134] ロックでアドバイスをいただきたいのですが — Keisuke Minami <keisuke@...>

はじめまして。三並と申します。

30 messages 1999/03/24
[#13136] Re: ロックでアドバイスをいただきたいのですが — hisanori@... 1999/03/24

松尾です。

[#13139] Re: ロックでアドバイスをいただきたいのですが — 中村暁史 <anakamur@...> 1999/03/24

[#13188] CGI (Re: ロックでアドバイスをいただきたいのですが) — Shugo Maeda <shugo@...> 1999/03/25

前田です。

[#13190] Re: CGI (Re: ロックでアドバイスをいただきたいのですが) — hisanori@... 1999/03/25

松尾です。

[#13140] Ruby Conference 0.3 — hisanori@...

松尾です。

25 messages 1999/03/24

[ruby-list:13214] Re: ロックでアドバイスをいただきたいのですが

From: Shugo Maeda <shugo@...>
Date: 1999-03-26 12:30:17 UTC
List: ruby-list #13214
前田です。

Keisuke Minami <keisuke@rccn.com> writes:

> >mod_rubyを使うとか(ぼそっ
> 
> そんな物があったんですか。
> 知らなかったです。

一応、ftp.netlab.co.jpのcontribに置いてあります。
最新のRubyでは以下のパッチが必要です。

diff -u -r1.2 apachelib.c
--- apachelib.c	1999/03/07 12:15:15	1.2
+++ apachelib.c	1999/03/18 02:12:24
@@ -47,12 +47,12 @@
 
 static VALUE apache_server_version(VALUE self)
 {
-    return rb_str_new2((char *) ap_get_server_version());
+    return rb_str_new2(ap_get_server_version());
 }
 
 static VALUE apache_server_built(VALUE self)
 {
-    return rb_str_new2((char *) ap_get_server_built());
+    return rb_str_new2(ap_get_server_built());
 }
 
 static VALUE apache_request(VALUE self)
@@ -266,7 +266,7 @@
     request_data *data;
 
     Data_Get_Struct(self, request_data, data);
-    return rb_str_new2((char *) data->request->hostname);
+    return rb_str_new2(data->request->hostname);
 }
 
 static VALUE request_unparsed_uri(VALUE self)
@@ -274,7 +274,7 @@
     request_data *data;
 
     Data_Get_Struct(self, request_data, data);
-    return rb_str_new2((char *) data->request->unparsed_uri);
+    return rb_str_new2(data->request->unparsed_uri);
 }
 
 static VALUE request_uri(VALUE self)
@@ -282,7 +282,7 @@
     request_data *data;
 
     Data_Get_Struct(self, request_data, data);
-    return rb_str_new2((char *) data->request->uri);
+    return rb_str_new2(data->request->uri);
 }
 
 static VALUE request_filename(VALUE self)
@@ -290,7 +290,7 @@
     request_data *data;
 
     Data_Get_Struct(self, request_data, data);
-    return rb_str_new2((char *) data->request->filename);
+    return rb_str_new2(data->request->filename);
 }
 
 static VALUE request_path_info(VALUE self)
@@ -299,7 +299,7 @@
 
     Data_Get_Struct(self, request_data, data);
     if (data->request->path_info)
-	return rb_str_new2((char *) data->request->path_info);
+	return rb_str_new2(data->request->path_info);
     else
 	return Qnil;
 }
@@ -334,10 +334,10 @@
 static VALUE request_content_length(VALUE self)
 {
     request_data *data;
-    char *s;
+    const char *s;
 
     Data_Get_Struct(self, request_data, data);
-    s = (char *) ap_table_get(data->request->headers_in, "Content-Length");
+    s = ap_table_get(data->request->headers_in, "Content-Length");
     return s ? rb_str2inum(s, 10) : Qnil;
 }
 
@@ -347,7 +347,7 @@
 
     Data_Get_Struct(self, request_data, data);
     if (data->request->content_type)
-	return rb_str_new2((char *) data->request->content_type);
+	return rb_str_new2(data->request->content_type);
     else
 	return Qnil;
 }
@@ -370,7 +370,7 @@
 
     Data_Get_Struct(self, request_data, data);
     if (data->request->content_encoding)
-	return rb_str_new2((char *) data->request->content_encoding);
+	return rb_str_new2(data->request->content_encoding);
     else
 	return Qnil;
 }
@@ -431,10 +431,10 @@
 static VALUE request_aref(VALUE self, VALUE key)
 {
     request_data *data;
-    char *val;
+    const char *val;
 
     Data_Get_Struct(self, request_data, data);
-    val = (char *) ap_table_get(data->request->headers_in, STR2CSTR(key));
+    val = ap_table_get(data->request->headers_in, STR2CSTR(key));
     return val ? rb_str_new2(val) : Qnil;
 }
 
diff -u -r1.2 ruby_module.c
--- ruby_module.c	1999/03/07 12:15:15	1.2
+++ ruby_module.c	1999/03/18 02:13:02
@@ -24,6 +24,10 @@
 #include <stdlib.h>
 #include <string.h>
 
+#ifdef WIN32
+#include <windows.h>
+#endif
+
 #include "httpd.h"
 #include "http_config.h"
 #include "http_core.h"
@@ -36,6 +40,7 @@
 
 #include "ruby.h"
 #include "rubyio.h"
+#include "util.h"
 #include "version.h"
 
 #include "ruby_module.h"
@@ -127,7 +132,7 @@
 
 #if MODULE_MAGIC_NUMBER >= 19980507
     ap_add_version_component(MOD_RUBY_STRING_VERSION);
-    snprintf(ruby_version, BUFSIZ, "Ruby/%s(%s)", RUBY_VERSION, VERSION_DATE);
+    snprintf(ruby_version, BUFSIZ, "Ruby/%s(%s)", RUBY_VERSION, RUBY_RELEASE_DATE);
     ap_add_version_component(ruby_version);
 #endif
 
@@ -164,7 +169,7 @@
     ruby_server_config *conf =
 	(ruby_server_config *) ap_pcalloc(p, sizeof(ruby_server_config));
 
-    conf->required_files = ap_make_array(p, 1, sizeof(char *));
+    conf->required_files = ap_make_array(p, 1, sizeof(char*));
     conf->exported_envtbl = ap_make_table(p, 1);
     return conf;
 }
@@ -180,16 +185,42 @@
 
 static void mr_clearenv()
 {
+#ifdef WIN32
+    char *orgp, *p;
+
+    orgp = p = GetEnvironmentStrings();
+
+    if (p == NULL)
+	return;
+
+    while (*p) {
+	char buf[1024];
+	char *q;
+
+	strncpy(buf, p, sizeof buf);
+	q = strchr(buf, '=');
+	if (q)
+	    *(q+1) = '\0';
+
+	putenv(buf);
+	p += strlen(p) + 1;
+    }
+
+    FreeEnvironmentStrings(orgp);
+#else
     if (environ == origenviron) {
 	environ = ALLOC_N(char*, 1);
     }
     else {
 	char **p;
 
-	for (p = environ; *p; p++) free(*p);
+	for (p = environ; *p; p++) {
+	    if (*p) free(*p);
+	}
 	REALLOC_N(environ, char*, 1);
     }
     *environ = NULL;
+#endif
 }
 
 static void mr_setenv(const char *name, const char *value)
@@ -458,12 +489,12 @@
     return rb_stdin;
 }
 
-struct wa_arg {
+struct wcb_arg {
     request_rec *r;
     FILE *fp;
 };
 
-static VALUE write_client_block0(struct wa_arg *arg)
+static VALUE write_client_block0(struct wcb_arg *arg)
 {
     char buff[HUGE_STRING_LEN];
     int len;
@@ -490,7 +521,7 @@
 
 static int write_client_block(request_rec *r)
 {
-    struct wa_arg arg;
+    struct wcb_arg arg;
     int state;
     int pipes[2];
     FILE *file;
@@ -551,7 +582,7 @@
     VALUE thread;
     ruby_dir_config *dconf = NULL;
     int retval, state;
-    char *kcode_orig = NULL;
+    const char *kcode_orig = NULL;
 
     (void) ap_acquire_mutex(mod_ruby_mutex);
 

> でも前にmod_perlに苦労させられた記憶が・・・。
> 何故かリクエストした内容とまったく別の画面がまれに現れてしまって
> 使い物にならなかったんです。
> mod_rubyの方ではそういう現象は発見されていませんよね。

一応手元ではまともに動いているようなのですが、まだテストは不十分です。
# バグ報告は歓迎します。

-- 
前田 修吾

In This Thread

Prev Next