[#586] irb aborts in 1.7.3 on Solaris — Jim Freeze <jim@...>
Hi:
6 messages
2002/12/06
[#598] irb Abort on Solaris Backtrace — Jim Freeze <jim@...>
Hi:
12 messages
2002/12/09
[#599] Re: irb Abort on Solaris Backtrace
— ts <decoux@...>
2002/12/09
>>>>> "J" == Jim Freeze <jim@freeze.org> writes:
[#600] Re: irb Abort on Solaris Backtrace
— Jim Freeze <jim@...>
2002/12/09
On Tuesday, 10 December 2002 at 1:44:43 +0900, ts wrote:
[#602] Re: irb Abort on Solaris Backtrace
— matz@... (Yukihiro Matsumoto)
2002/12/09
Hi,
[#603] Re: irb Abort on Solaris Backtrace
— Jim Freeze <jim@...>
2002/12/09
On Tuesday, 10 December 2002 at 3:24:46 +0900, Yukihiro Matsumoto wrote:
[#606] Re: irb Abort on Solaris Backtrace
— matz@... (Yukihiro Matsumoto)
2002/12/09
Hi,
[#609] Re: irb Abort on Solaris Backtrace
— Jim Freeze <jim@...>
2002/12/10
On Tuesday, 10 December 2002 at 7:59:33 +0900, Yukihiro Matsumoto wrote:
[#601] Re: irb Abort on Solaris Backtrace — "Garriss, Michael" <Michael.Garriss@...>
I tried: `ruby -r socket -e 0` and got no error. I would really like to
5 messages
2002/12/09
[#633] Error installing some extensions under non-default prefix — Jos Backus <jos@...>
Fyi: with today's CVS, when I run
4 messages
2002/12/13
[#636] doc/NEWS — Matt Armstrong <matt@...>
22 messages
2002/12/15
[#640] Re: [patch] doc/NEWS
— nobu.nokada@...
2002/12/15
Hi,
[#641] Re: [patch] doc/NEWS
— Matt Armstrong <matt@...>
2002/12/16
[#637] Re: [patch] doc/NEWS
— "Akinori MUSHA" <knu@...>
2002/12/15
At Mon, 16 Dec 2002 02:07:40 +0900,
[#639] Re: [patch] doc/NEWS
— matz@... (Yukihiro Matsumoto)
2002/12/15
Hi,
[#644] Re: [patch] doc/NEWS
— Tanaka Akira <akr@...17n.org>
2002/12/16
In article <1039993469.392945.14311.nullmailer@picachu.netlab.jp>,
[#667] Segfault in Ruby 1.7.x/1.8 Proc#to_s — Michael Granger <ged@...>
Hello,
8 messages
2002/12/29
Re: Error in sprintf.c?
From:
nobu.nokada@...
Date:
2002-12-19 12:54:03 UTC
List:
ruby-core #663
Hi,
At Thu, 19 Dec 2002 20:25:01 +0900,
Alexander Bokovoy wrote:
> It seems that there is a bug in recent sprintf changes which presents at least in
> a snapshot of Ruby 1.7.3 dated 2002-11-17:
>
> $ irb
> irb(main):001:0> sprintf("%*s", 10, "hello")
> " hello"
> irb(main):002:0> sprintf("%*1$s", 10, "hello")
> ArgumentError: unnumbered(1) mixed with numbered
> from (irb):2:in `sprintf'
> from (irb):2
> irb(main):003:0> sprintf("%*2$s", "hello", 10)
> ArgumentError: unnumbered(1) mixed with numbered
> from (irb):3:in `sprintf'
> from (irb):3
sprintf("%*1$2$s", 10, "hello") # => " hello"
sprintf("%2$*1$s", 10, "hello") # => " hello"
This feature (numbered argument) is come from SUSv2:
http://www.opengroup.org/onlinepubs/007908799/xsh/fprintf.html
The format can contain either numbered argument
specifications (that is, %n$ and *m$), or unnumbered
argument specifications (that is, % and *), but normally
not both. The only exception to this is that %% can be
mixed with the %n$ form.
The results of mixing numbered and unnumbered argument
specifications in a format string are undefined.
Incidentally, glibc doesn't allow such usage according to man
page of Linux.
If the style using `$' is used, it must be used throughout
for all conversions taking an argument and all width and
precision arguments,
--
Nobu Nakada