[#4654] signleton_methods / methods / public_methods - weirdness? — Johan Holmberg <holmberg@...>
[#4666] Getting a hex representation for a Numeric — "Zev Blut" <rubyzbibd@...>
Hello,
[#4670] ruby 1.8.3 preview1 plan — Yukihiro Matsumoto <matz@...>
Hi,
[#4690] test failures for stable-snapshot 09/04/2005 — noreply@...
Bugs item #1762, was opened at 10-04-2005 20:46
Hello.
[#4709] BNF-like grammar specified DIRECTLY in Ruby — Eric Mahurin <eric_mahurin@...>
Hello everybody,
[#4712] Segfault in zlib? — Nathaniel Talbott <ntalbott@...>
I'm using rubyzip (latest gem version) and zlib (1.2.2) to do a bunch
[#4736] Trivial speedup in Array#zip — Mauricio Fern疣dez <batsman.geo@...>
[#4745] Win32: Ruby & APR; build problems for Ruby Subversion SWIG bindings — Erik Huelsmann <ehuels@...>
Having taken upon me the task to provide a Windows build for
On 4/20/05, Erik Huelsmann <ehuels@gmail.com> wrote:
Hi Austin,
Hi,
On 4/24/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
Hi,
> > > Ruby is just using AC_TYPE_UID_T. So, using typedef for them,
Hi,
On 4/26/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
As promised, I attached a patch to eliminate the compile problems
Hi,
Thanks for the quick response!
Hi,
On 5/14/05, nobu.nokada@softhome.net <nobu.nokada@softhome.net> wrote:
[#4751] Illegal regexp causes segfault — Andrew Walrond <andrew@...>
irb(main):058:0> a = /\[([^]]*)\]/
Andrew Walrond, April 22:
In article <200504221210.38231.andrew@walrond.org>,
>>>>> "T" == Tanaka Akira <akr@m17n.org> writes:
[#4774] enhanced $0 modification — Evan Webb <evanwebb@...>
The attached patch allows for ruby to use more of the available stack
Hi,
[#4775] profiler.rb Schroedinbug — C Erler <erlercw@...>
A ruby program with the single instruction "require 'profile'"
>A ruby program with the single instruction "require 'profile'"
[#4807] Re: -Wall — Vincent Isambart <vincent.isambart@...>
> Why does ruby build without -Wall in CFLAGS by default? -Wall can help to
[#4815] Re: -Wall — nobu.nokada@...
Hi,
Re: [PATCH] enhanced $0 modification
Hi,
At Mon, 25 Apr 2005 08:34:07 +0900,
Evan Webb wrote in [ruby-core:04774]:
> The attached patch allows for ruby to use more of the available stack
> space when altering argv[0]. This allows for much more flexible usage
> of setting $0 as the new value is not constrained only be the current
> size of argv, but by the size of argv plus the size of the
> environment.
>
> Initial tests show that even though the new $0 consumes space formally
> occupied by the envp array, it has no ill effects on usage of the
> environment.
It resulted SEGV with bccwin. And envp doesn't seem necessary.
Index: ruby.c
===================================================================
RCS file: /cvs/ruby/src/ruby/ruby.c,v
retrieving revision 1.98
diff -U2 -p -r1.98 ruby.c
--- ruby.c 20 Apr 2005 21:44:20 -0000 1.98
+++ ruby.c 26 Apr 2005 13:23:37 -0000
@@ -991,17 +991,18 @@ set_arg0(val, id)
s = RSTRING(val)->ptr;
i = RSTRING(val)->len;
-#ifdef __hpux
+#if defined(PSTAT_SETCMD)
if (i >= PST_CLEN) {
union pstun j;
@@ -1025,4 +1025,27 @@ set_arg0(val, id)
}
}
+#ifndef DOSISH
+ {
+ extern char **environ;
+
+ /*
+ * Adapted enhanced usage of env space for program title
+ * from ProFTPD init_set_proc_title.
+ * Copyright (c) 1997, 1998 Public Flood Software
+ * Copyright (c) 1999, 2000 MacGyver, aka Habeeb J. Dihu <macgyver@tos.net>
+ */
+
+ for (i = 0; environ[i]; i++) {
+ if (environ[i] == s + 1) {
+ s++;
+ s += strlen(s); /* this one is ok too */
+ }
+ }
+
+ for (i = 0; environ[i]; i++) {
+ environ[i] = strdup(environ[i]);
+ }
+ }
+#endif
len = s - origargv[0];
}
--
Nobu Nakada