Activity
From 04/09/2009 to 04/15/2009
04/15/2009
-
10:51 PM Bug #1367: flatten(0) is not consistent with flatten(), flatten(1), etc.
- =begin
Hi,
2009/4/15 Rafael Crivellari Saliba Schouery <schouery@gmail.com>:
> Ruby gives you a new array, so I think this is really a bug. I want to make
> a patch
> for it soon, but I don't know when I will be able to.
Thank ... -
09:56 PM Bug #1367: flatten(0) is not consistent with flatten(), flatten(1), etc.
- =begin
I thought about that too.
I was think about other functions. sort, of course, is going to give you a
new array,
but what about functions that already knows that is not going to do
anything, like
[].reverse ?
Ruby gives you ... -
08:57 PM Bug #1367 (Closed): flatten(0) is not consistent with flatten(), flatten(1), etc.
- =begin
Applied in changeset r23191.
=end
-
07:11 PM Bug #1367: flatten(0) is not consistent with flatten(), flatten(1), etc.
- =begin
As a pro-fix argument consider what happens when the code using flatten has a dynamic depth value. So rather than:
x = a.flatten(0)
It's something like:
x = a.flatten(depth)
To ensure that this code behaviour... -
05:46 AM Bug #1367: flatten(0) is not consistent with flatten(), flatten(1), etc.
- =begin
I did take a look in the problem:
static VALUE
rb_ary_flatten(int argc, VALUE *argv, VALUE ary)
{
int mod = 0, level = -1;
VALUE result, lv;
rb_scan_args(argc, argv, "01", &lv);
if (!NIL_P(lv)) level = NUM2... -
07:52 PM Bug #1381: Confusing Encoding Error
- =begin
This patch fix the problem, but may cause another one. I don't understand the purpose of the original code.
=end
-
06:32 AM Bug #1381 (Closed): Confusing Encoding Error
- =begin
When I reuse a Regexp object, the Encoding seems unchanged but an error message can report something different from what I am seeing:
$ cat enc_error_bug.rb
re = /./
puts re.encoding.name
"a".encode("A... -
06:12 PM Bug #1382 (Closed): inline functions ought to be static
- =begin
While compiling Ruby with ongoing versions of clang/llvm, it appeared that rb_reserved_word, an inline function in lex.c.blt which is included in parse.y is not declared as static as it apparently should (C99). gcc supports it. ... -
12:07 PM Bug #1379 (Closed): Dir.glob should not convert entries on UNIX
- =begin
Applied in changeset r23190.
=end
-
11:47 AM Revision bded3bb7 (git): * array.c (rb_ary_flatten): flatten(0) works as Array#dup.
- [ruby-core:23168]
* test/ruby/test_array.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:36 AM Bug #634: Time parsing works in 1.8 but not 1.9
- =begin
should Date.parse("4/30/2009")
parse in 1.9?
>> Date.parse("4/30/2009")
ArgumentError: invalid date
...
Thanks!
=end
-
03:00 AM Revision 31c1883a (git): * dir.c (fnmatch_helper): use rb_enc_precise_mbclen and
- fail if bytes are invalid. [ruby-dev:38307]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/14/2009
-
09:10 PM Bug #1379 (Closed): Dir.glob should not convert entries on UNIX
- =begin
こんばんは sheepman です。
r23189 の適用後でも以下のように Shift_JIS のファイル名がある場合に
例外が発生しますが、これはこういうものでしょうか。Dir.glob の目的から
言って、変換に失敗した場合は例外を発生させず、スキップするべきなのでは
ないでしょうか。Dir.entries も UNIX 上では locale に対して不正なファイル名が
あっても例外を発生させないわけですし。
$ echo $L... -
06:17 PM Bug #1378 (Closed): Dir.glob should not convert entries on UNIX
- =begin
Applied in changeset r23189.
=end
-
04:23 PM Bug #1378 (Closed): Dir.glob should not convert entries on UNIX
- =begin
ujihisaといいます。
r23171 から、bracketを含むDir.globがうまく動いていませんでした。
$ ./ruby -e "p Dir.glob('/[ae]tc/')"
[]
以下はパッチです。これを当てると、 mspec ./spec/rubyspec/core/dir/glob_spec.rb に通るようになります。
diff --git a/dir.c b/dir.c
index 14b4872..dab... -
05:22 PM Bug #1336: Change in string representation of Floats
- =begin
On Apr 13, 2009, at 00:19 , Eero Saynatkari wrote:
> I think I am in agreement, but I would like to amend the
> description of the three to confirm:
>
> #to_s: String representing the object mainly for output
> #in... -
03:06 PM Bug #1336: Change in string representation of Floats
- =begin
Gary Wright wrote:
>
> I don't think it is even possible unless you introduce binary (or maybe
> hex) floating point literals. That is the only way you are going to be
> able to safely round-trip between an internal IEEE fl... -
02:22 PM Bug #1336: Change in string representation of Floats
- =begin
Yukihiro Matsumoto wrote:
> The reason for the change (increased precision) was too many people do
> not understand the nature of floating point values on computers, and
> fall in error traps by illusion partly emphasized by d... -
02:05 PM Bug #1336: Change in string representation of Floats
- =begin
Hi,
In message "Re: [ruby-core:23189] Re: [Bug #1336] Change in string representation of Floats"
on Mon, 13 Apr 2009 13:12:13 +0900, Brent Roman <brent@mbari.org> writes:
|
|What does the current trunk output for (2.1-3... -
01:45 PM Bug #1336: Change in string representation of Floats
- =begin
currently (for curiosity sake) trunk does:
>> [1,2,3].to_s
=> "[1, 2, 3]"
>> [1,2,3].inspect
=> "[1, 2, 3]"
>> -0.9
=> -0.9
>> 2.1-3.0
=> -0.8999999999999999
>> 2.1-3.0+0.9
=> 1.1102230246251565e-16
>>... -
09:11 AM Revision 205c4b49 (git): * dir.c (bracket): if same in bytes, path is matching.
- [ruby-dev:38305]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:25 AM Feature #1377: Please provide constant File::NOATIME
- =begin
For the curious, my intended use for this is in http://launchpad.net/foton when scanning for images.
=end
-
02:19 AM Feature #1377 (Closed): Please provide constant File::NOATIME
- =begin
I would like to be able to specify File::NOATIME mode when opening a file through File.new():
irb(main):001:0> f = File.new("file", File::RDONLY|File::NOATIME)
NameError: uninitialized constant File::NOATIME
from (irb):...
04/13/2009
-
05:28 PM Bug #1376: inline symbols/fixnums in a case expression do not honor an overwritten #=== method
- =begin
In case of variable, it works.
class Symbol
def ===(o)
p 42
true
end
end
# this works
a = :foo
case :foo
when a
p 'a'
end
# this dosen't work
case :foo
when :foo
p ... -
02:45 PM Bug #1376 (Closed): inline symbols/fixnums in a case expression do not honor an overwritten #=== method
- =begin
The case expression in Ruby 1.9 does not seem to honor the fact that Symbol#=== could have been overwritten prior to the expression.
An example with both Ruby 1.8 and Ruby 1.9:
$ ruby -e "class Symbol; def ===(o); p 42;... -
04:19 PM Bug #1336: Change in string representation of Floats
- =begin
Excerpts from Yukihiro Matsumoto's message of Mon Apr 13 05:17:28 +0300 2009:
> Perhaps we need 3 ways for string representation:
>
> * mere string representation
> * human readable representation
> * regenerating rep... -
01:12 PM Bug #1336: Change in string representation of Floats
- =begin
I'm not sure I understand the difference between "mere string" and "human
readable" representations.
Could you give an example?
1.8 is similar enough to 1.9 that many straightforward scripts will run
without change.
Howe... -
11:17 AM Bug #1336: Change in string representation of Floats
- =begin
Hi,
In message "Re: [ruby-core:23187] Re: [Bug #1336] Change in string representation of Floats"
on Mon, 13 Apr 2009 10:54:46 +0900, Brent Roman <brent@mbari.org> writes:
|Perhaps I'm not understanding the question.
|... -
10:55 AM Bug #1336: Change in string representation of Floats
- =begin
Perhaps I'm not understanding the question.
Consider:
s = "string"
s.inspect ==> "string" #this will round-trip
s.to_s ==> string #this lacks the required delimiters
s = :symbol
s.inspect ==> :symbo... -
07:28 AM Bug #1336: Change in string representation of Floats
- =begin
Hi,
In message "Re: [ruby-core:23181] Re: [Bug #1336] Change in string representation of Floats"
on Sun, 12 Apr 2009 03:53:12 +0900, Brent Roman <brent@mbari.org> writes:
|I'd prefer that Float#to_s => rounded, Float#i... -
12:58 PM Bug #1375 (Closed): Zlib::GzipReaderに対するエンコーディング指定
- =begin
Zlib::GzipReaderでエンコーディングを指定しても効果がないようですが、これはそういうもので、
読んだ結果を適宜エンコーディングするのが正しいやり方でしょうか。
$irb -rzlib --prompt=simple
>> RUBY_VERSION
=> "1.9.2"
>> Encoding.default_external
=> #<Encoding:UTF-8>
>> gz = Zlib::GzipRe... -
08:21 AM Revision 946fe699 (git): * sprintf.c (rb_str_format): scan coderange incrementally.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:40 AM Revision b2ac99df (git): * sprintf.c (rb_str_format): optimize previous commit.
- [ruby-list:45954]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:00 AM Revision 87335c3e (git): * sprintf.c (rb_str_format): check encoding compatibility only on
- real parts.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/12/2009
-
02:03 PM Revision 48667901 (git): merges r22902 from trunk into ruby_1_9_1.
- --
* io.c (copy_stream_fallback_body): off_t may be larger than long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:03 PM Revision ea258b36 (git): merges r22901 from trunk into ruby_1_9_1.
- --
* iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:03 PM Revision fe5fa9be (git): merges r22900 from trunk into ruby_1_9_1.
- --
* process.c (rb_f_sleep): time() needs time_t.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:03 PM Revision d21f0f42 (git): merges r22898 from trunk into ruby_1_9_1.
- --
* thread_pthread.c (ruby_init_stack): range of rlim_cur may be
larger than int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:03 PM Revision 45b4a724 (git): merges r22891 from trunk into ruby_1_9_1.
- --
* ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol
name. [ruby-dev:38150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:02 PM Revision 1eba6170 (git): merges r22883 from trunk into ruby_1_9_1.
- --
* ext/dl/handle.c (rb_dlhandle_sym): fixed heap corruption.
[ruby-core:22822]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:02 PM Revision 318d48df (git): merges r22870 from trunk into ruby_1_9_1.
- --
* win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO
and so on. based on a patch by Charlie Savage at
[ruby-core:22794]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23179 b2dd03c8-39d4-4d8f-98ff-82... -
02:02 PM Revision 7a54bfe2 (git): merges r22869 from trunk into ruby_1_9_1.
- --
* win32/Makefile.sub (config.h): passes LDFLAGS to rbconfig.rb so
that extconf.rb could refer it. [ruby-core:22725]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:02 PM Revision f6895634 (git): merges r22744 from trunk into ruby_1_9_1.
- --
* lib/csv.rb: Some minor documentation fixes from Gregory Brown.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:02 PM Revision 447818ea (git): merges r22741 from trunk into ruby_1_9_1.
- --
* lib/prime.rb (Prime::prime?): used to return a wrong answer.
[ruby-core:22646].
* test/test_prime.rb (test_prime?): test case for [ruby-core:22646].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23176 b2dd03c8... -
02:02 PM Revision 59429eeb (git): merges r22777 from trunk into ruby_1_9_1.
- --
* win32/Makefile.sub (miniruby.exe): workaround for a failure of
mt.exe on Windows 7 beta. [ruby-talk:330284]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:02 PM Revision 13147305 (git): merges r22769 from trunk into ruby_1_9_1.
- --
* win32/README.win32 (Requirement): VC++ 5.0 is not supported
already.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:01 PM Revision 6069996a (git): * 2009-04-12
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:01 PM Revision 3f12adfa (git): merges r22765 from trunk into ruby_1_9_1.
- --
* lib/thread.rb (SizedQueue#push): fix limit condition.
[ruby-dev:38135]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@23172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:54 AM Revision 207becd9 (git): * dir.c (bracket, fnmatch_helper): compare bytewise first, to get
- rid of invalid byte sequence. [ruby-dev:38303]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:59 AM Bug #1336: Change in string representation of Floats
- =begin
Your latter example seems quite nice.
Especially if it would accept unabbreviated forms such as this:
0.9.to_s(precision: 4, width: 6) #=> " 9.000"
- brent
Nobuyoshi Nakada-2 wrote:
>
> Hi,
>
> At Sat, 11 Ap... -
03:53 AM Bug #1336: Change in string representation of Floats
- =begin
I'd prefer that Float#to_s => rounded, Float#inspect => non rounded
(i.e. 0.9.inspect => "0.8999999999")
- brent
Sakuro OZAWA wrote:
>
> Issue #1336 has been updated by Roger Pack.
>
>
> I like the recent chang...
04/11/2009
-
04:03 PM Bug #1336: Change in string representation of Floats
- =begin
Hi,
At Sat, 11 Apr 2009 15:17:24 +0900,
Roger Pack wrote in [ruby-core:23179]:
> Is this satisfactory, or would anyone still prefer Float#to_s
> => rounded, Float#inspect => non rounded (i.e. 0.9.inspect =>
> "0.8999999999... -
03:17 PM Bug #1336: Change in string representation of Floats
- =begin
I like the recent change. Now it acts like this:
>> 0.9
=> 0.9
>> 2.1 - 3.0
=> -0.8999999999999999
>> (2.1-3.0) == -0.9
=> false
Is this satisfactory, or would anyone still prefer Float#to_s => rounded, Floa... -
03:42 PM Feature #1031 (Assigned): -U オプションの説明が --help にない
- =begin
=end
-
01:11 PM Feature #1031: -U オプションの説明が --help にない
- =begin
権限のある方、ステータスを Assigned に変更してください。
=end
-
11:41 AM Feature #1374 (Closed): location of already initialized constant
- =begin
なかだです。
初期化済み定数の警告で、定義された場所を表示するのはどうでしょうか。
$ ./ruby -e X=1 -e X=2
-e:2: warning: already initialized constant X at -e:1
Index: class.c
===================================================================
-... -
12:04 AM Revision 63347979 (git): * ChangeLog: typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/10/2009
-
11:45 PM Revision 6e785b17 (git): * configure.in (Makefile): phoeny ruby target needs empty command.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:18 AM Bug #1372: Kernel.catch not accepting &block
- =begin
Suraj Kurapati wrote::
> $ cat catch.rb
> b = lambda { throw :foo }
> catch :foo, &b
...
> catch.rb:2:in `catch': wrong number of arguments (1 for 0) (ArgumentError)
> from catch.rb:2:in `<main>'
Proc object generated ... -
06:51 AM Bug #1372 (Closed): Kernel.catch not accepting &block
- =begin
Please observe:
$ cat catch.rb
b = lambda { throw :foo }
catch :foo, &b
$ multiruby catch.rb
VERSION = 1.8.7-p72
CMD = ~/.multiruby/install/1.8.7-p72/bin/ruby catch.rb
RESULT = 0
VERS... -
02:32 AM Revision 4ab8fb1a (git): * common.mk (up): updates timestamp file.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04/09/2009
-
07:54 PM Revision 5c532941 (git): * configure.in (Makefile): info-program needs common.mk.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:46 PM Revision 3a60f6ef (git): * configure.in (RUBY_INSTALL_NAME): use --program-transform-name.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:01 PM Revision 8191f129 (git): * instruby.rb, mkconfig.rb: deal with --program-transform-name
- better. now supports s, y commands and single addressing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:59 PM Revision 7bce5959 (git): * 2009-04-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:59 PM Revision 07aede58 (git): * configure.in: don't override the rule for ruby.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:44 AM Bug #1370 (Closed): in `glob': invalid byte sequence in UTF-8
- =begin
Code page is CP949 and file name is "\xC7\xD1.exe"
Here is sample code:
# encoding: UTF-8
a = Dir.glob('*') # success
p a
a = Dir.glob('*.exe') # fail
p a
The output is:
ruby 1.9.1p0 (2009-01-30 revision 2... -
11:28 AM Bug #1366 (Assigned): Pathname#relative_path_from should handle the scenario where the argument uses a different case for the Windows drive letter
- =begin
Already fixed in r23093, and would be backported by the next patch release.
=end
-
02:40 AM Bug #1366 (Closed): Pathname#relative_path_from should handle the scenario where the argument uses a different case for the Windows drive letter
- =begin
On Windows, the case of the drive letter can be either upper case or lower case (eg, "C:" or "c:") on the same machine at the same time in different Command Prompt Windows (see below for details). Dir.pwd will return either lower... -
09:04 AM Bug #1368 (Closed): ruby19 trunk (svn revision 23160) build fails compiling dl ext on win32
- =begin
Hi,
In attempting to build from the current svn trunk (revision 23160)
on win32, I'm getting a failure linking the dl extension.
(Building on WinXP, Visual Studio 2003, cl.exe version 13.10.6030)
I configured as ... -
08:01 AM Bug #1367 (Closed): flatten(0) is not consistent with flatten(), flatten(1), etc.
- =begin
> a = [1, 2]
> a2 = a.flatten
> a2 << :a
> a2
=> [1, 2, :a]
> a
=> [1, 2]
> b = [3, 4]
> b2 = b.flatten 1
> b2 << :b
> b2
=> [3, 4, :b]
> b
=> [3, 4]
HOWEVER:
> c = [5, 6]
> c2 = c.flatten... -
03:56 AM Feature #578: add method to disassemble Proc objects
- =begin
Any progress on this? any way I can help?
Thanks!
-=r
=end
- 02:11 AM Revision d58b0f8e (git): * 2009-04-09
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:11 AM Revision 27a12555 (git): * ext/nkf/nkf.c: RDoc typo fixed. [ruby-core:23170]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e