Project

General

Profile

Activity

From 03/11/2012 to 03/17/2012

03/17/2012

10:35 PM Bug #6158: Enumerator::Lazy#take: should it be lazy?
matz:
> use #first. map! etc. do not conform other bang method naming convention.
Thank you for taking the decision.
Shugo:
I understand the use, so I also think it's worth having some form of lazy #take.
However, I think many...
Eregon (Benoit Daloze)
10:02 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
use #first. map! etc. do not conform other bang method naming convention. matz (Yukihiro Matsumoto)
07:36 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
=begin
Same for me - at first was thinking about having take evaluating makes sense.
But having ability to continue building the lazy chain looks more logical.
Having something like #pinch totally makes sense.
However I'm thinkin...
gregolsen (Innokenty Mikhailov)
12:55 AM Bug #6158: Enumerator::Lazy#take: should it be lazy?
Both "takes" on this seem valid. Could there be a special method similar to take for de-lazying and taking a segment of the enumeration? e.g. maybe #pinch ?
e.lazy.pinch(3)
e.lazy.pinch(4..6)
e.lazy.pinch(2, 4)
trans (Thomas Sawyer)
05:59 PM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
On Fri, Mar 16, 2012 at 7:24 PM, Eric Wong <normalperson@yhbt.net> wrote:
>> The only cases that break are cases that check e.class == EAGAIN,
>> which is probably not a good pattern anyway.
>
> I also noticed some test failures wit...
headius (Charles Nutter)
09:29 AM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
Charles Nutter <headius@headius.com> wrote:
> I should have mentioned that JRuby has been running this way for a
> while (on master) and we have had no reports of incompatibility. The
> concrete subclass is_a EAGAIN and is_a WaitR...
normalperson (Eric Wong)
10:23 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
Hi,

In message "Re: [ruby-core:43357] [ruby-trunk - Bug #6155] Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each"
on Sat, 17 Mar 2012 06:42:22 +0900, Marc-Andre Lafortune <ruby-core@marc-...
matz (Yukihiro Matsumoto)
06:42 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
Hi,
Shugo Maeda wrote:
> I doubt that this behavior of Enumerable#flat_map is reasonable.
> ...
I understand your point of view. This behavior was clearly intended in Matz's original commit, though (r25456). Changing this could also...
marcandre (Marc-Andre Lafortune)
12:48 AM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
> > [1, 2, 3].flat_map { |n| n }.to_a
> ...
I was writing rubyspec for Enumerable::Lazy#flat_map had the same behaviour as Enumerable#flat_map (besides the obvious differences in return value). Here is what I was using as a basis: htt...
dkubb (Dan Kubb)
10:23 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Hi,

In message "Re: [ruby-core:43358] [ruby-trunk - Feature #5008] Equal rights for Hash (like Array, String, Integer, Float)"
on Sat, 17 Mar 2012 07:13:17 +0900, Marc-Andre Lafortune <ruby-core@marc-andre.ca> writes:

|E...
matz (Yukihiro Matsumoto)
10:08 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
> "Repeating myself, unlike other classes in the table, Hash does not have "natural" conversion from set of values, so that I don't think it's worth provide to_h method."
> ...
I see, you were referring to Enumerable#to_h and meant t...
trans (Thomas Sawyer)
07:13 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Hi,
Yukihiro Matsumoto wrote:
> Repeating myself, unlike other classes in the table, Hash does not
> ...
Thanks for taking the time to reply.
Even if you will not accept Enumerable#to_h, how about `to_h` for Hash, Struct, OpenSt...
marcandre (Marc-Andre Lafortune)
08:31 AM Feature #6163 (Closed): Remove syck YAML extension
=begin
The syck extension should be removed for the following reasons:
Syck only supports YAML 1.0
Syck is not YAML 1.0 compliant.
Syck is not easy to maintain, and many of the bugs existing in it have not been fixed.
Psych ...
drbrain (Eric Hodel)
04:24 AM Bug #6151: ArgumentError of lambda shows wrong location
How can that be by design? What kind of design criteria says that "instance_eval should blow up if a lambda is passed to it"?
So you are saying that instance_eval passes the receiver into the Proc as an argument? Why would it do this...
trans (Thomas Sawyer)
03:18 AM Bug #6151: ArgumentError of lambda shows wrong location
Just the location was fixed. The error is "by design" -- as you discovered, you will need to use Proc.new (or lambda {|*| ... }). john_firebaugh (John Firebaugh)
03:16 AM Bug #6151: ArgumentError of lambda shows wrong location
Just to be clear, where both issues fixed? i.e. the fact that an error was raised in this case at all, as well as the location of lambda errors?
trans (Thomas Sawyer)
02:19 AM Bug #6161 (Closed): Document interpretation of backslashes in string transliterations
=begin
The transliteration string accepted by String#tr, #delete, #squeeze, and #count has its own backslash escape syntax (on top of that provided by string literals), but it isn't documented.
A backlash character escapes the subseq...
john_firebaugh (John Firebaugh)
01:49 AM Bug #6160 (Closed): '\\'.delete('\\') raise ArgumentError: empty string
This issue was solved with changeset r35073.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (trnext): fix bug with string ending with '\\'.
...
znz (Kazuhiro NISHIYAMA)
01:40 AM Bug #6160 (Closed): '\\'.delete('\\') raise ArgumentError: empty string
r35069 の変更の影響でクリーンビルドすると
../tool/transcode-tblgen.rb:758:in `delete': empty string (ArgumentError)
で止まります。
再現条件を絞り込んだところ '\\'.delete('\\') で ArgumentError になりました。
znz (Kazuhiro NISHIYAMA)
12:35 AM Bug #6159: Enumerable::Lazy#inspect
Benoit Daloze wrote:
> So something like: #<Enumerator::Lazy: 1..5:each> or #<Enumerator::Lazy: #<Enumerator: 1..5:each>>
> ...
I agree that It would be nice. However, unlike Enumerator, Enumerator::Lazy doesn't have enough informatio...
shugo (Shugo Maeda)

03/16/2012

11:22 PM Bug #6158 (Assigned): Enumerator::Lazy#take: should it be lazy?
Hello,
Benoit Daloze wrote:
> I noticed #take is now defined on Enumerator::Lazy, and it has lazy behavior:
> ...
At first, I had the same opinion, but lazy take is sometimes useful.
For example, the following code consume much mem...
shugo (Shugo Maeda)
08:49 PM Bug #6158 (Closed): Enumerator::Lazy#take: should it be lazy?
Hello,
I noticed #take is now defined on Enumerator::Lazy, and it has lazy behavior:
(1..1000).lazy.select(&:even?).take 3 # => #<Enumerator::Lazy ...>
I would expect #take to not be lazy and always produce an Array, like th...
Eregon (Benoit Daloze)
10:05 PM Revision 30c0db4a (git): follow r35040
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
09:57 PM Revision db3bce11 (git): * object.c: Fix indentation of Class#inherited example.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
08:59 PM Bug #6159 (Closed): Enumerable::Lazy#inspect
Hello,
Enumerable::Lazy#inspect is undefined right now and relies on Enumerator#inspect:
(1..5).lazy # => #<Enumerator::Lazy: #<Enumerator::Generator:0x00000101a2f9e8>:each>
I think it would be nice to be similar to (direct)...
Eregon (Benoit Daloze)
08:06 PM Bug #6156 (Closed): String#tr fails on UTF-16
This issue was solved with changeset r35069.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* string.c (trnext): should advance char-wise.
[ruby-core:43335...
nobu (Nobuyoshi Nakada)
03:05 PM Bug #6156 (Closed): String#tr fails on UTF-16
>> "b".encode("utf-16le").tr("a-z".encode("utf-16le"), "*".encode("utf-16le"))
ArgumentError: invalid byte sequence in UTF-16LE
from (irb):91:in `tr'
from (irb):91
from /Users/john/.rvm/rubies/ruby-1.9.3-p125/bin/irb:16:in `<main>...
john_firebaugh (John Firebaugh)
07:41 PM Bug #6107: Documentation Abbrev (stdlib) confusing
Previous patch is bunk, please disregard.
Attached patch removes the sort from the example and updates the example output with the actual hash.
zmack (Andrei Bocan)
04:49 PM Revision ea6511c6 (git): * string.c (trnext): fix bug with string ending with '\\'.
[ruby-dev:45374][Bug #6160]
* test/ruby/test_string.rb (TestString#test_delete): test for
above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
znz (Kazuhiro NISHIYAMA)
03:36 PM Bug #6157 (Closed): Enumerable::Lazy#select does not handle multiple yield arguments
Dan Kubb wrote:
> When the #each method yields more than one argument, Enumerable::Lazy#select only accepts the first argument, e.g.:
The bug has already been fixed in r35043. Please try the latest revision.
shugo (Shugo Maeda)
03:23 PM Bug #6157 (Closed): Enumerable::Lazy#select does not handle multiple yield arguments
When the #each method yields more than one argument, Enumerable::Lazy#select only accepts the first argument, e.g.:
class MultiYield
include Enumerable ...
dkubb (Dan Kubb)
03:30 PM Revision 2cab78a9 (git): remove a trailing space [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:20 PM Revision 9a4c2a98 (git): * 2012-03-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:20 PM Revision 25755e38 (git): remove a trailing space
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:19 PM Bug #6155 (Assigned): Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
shugo (Shugo Maeda)
03:19 PM Bug #6155: Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
Hello,
Dan Kubb wrote:
> The following statement will raise "NoMethodError: undefined method `each' for 1:Fixnum":
> ...
I doubt that this behavior of Enumerable#flat_map is reasonable.
flat_map is designed to concatenate multiple ...
shugo (Shugo Maeda)
02:53 PM Bug #6155 (Closed): Enumerable::Lazy#flat_map raises an exception when an element does not respond to #each
The following statement will raise "NoMethodError: undefined method `each' for 1:Fixnum":
[1, 2, 3].lazy.flat_map { |n| n }.to_a
It appears as if Enumerable::Lazy#flat_map is calling #each on every element, regardless of whether ...
dkubb (Dan Kubb)
02:42 PM Bug #5544: Lookup scope for class variables in class_eval'd procs changed in 1.9.3
Joshua Ballanco wrote:
> While I prefer the behavior in 1.9.3 (it is more consistent with constant lookup rules), the inconsistency between 1.9.2 and 1.9.3 is unsettling.
It is intended, so I've fixed the documentation of class_eval....
shugo (Shugo Maeda)
02:38 PM Bug #5544 (Closed): Lookup scope for class variables in class_eval'd procs changed in 1.9.3
This issue was solved with changeset r35057.
Joshua, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_eval.c (rb_mod_module_eval): fix the documentation of
cl...
shugo (Shugo Maeda)
02:33 PM Bug #5777: class_eval/module_eval works differently when given a string than when given a block in 1.9.2 and 1.9.3
George MacKerron wrote:
> Yehuda, thanks for the response. I understand that the lookup rules were changed between 1.9.1 and 1.9.2 -- that's not the issue I'm raising.
> ...
It is intended behavior, because a block closes the environme...
shugo (Shugo Maeda)
02:28 PM Bug #5777 (Closed): class_eval/module_eval works differently when given a string than when given a block in 1.9.2 and 1.9.3
This issue was solved with changeset r35056.
George, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_eval.c (rb_mod_module_eval): fix the documentation of
cl...
shugo (Shugo Maeda)
02:23 PM Bug #5570: Encoding of environment variables on Windows
On Thu, Mar 15, 2012 at 05:16, Nikolai Weibull <now@bitwi.se> wrote:
> On Thu, Mar 15, 2012 at 02:51, U.Nakamura <usa@garbagecollect.jp> wrote:
>> Hello,
>>
>> In message "[ruby-core:43237] [ruby-trunk - Bug #5570][Feedback] Encodin...
now (Nikolai Weibull)
12:46 PM Bug #5570 (Closed): Encoding of environment variables on Windows
This issue was solved with changeset r35030.
Nikolai, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* win32/win32.c, include/ruby/win32.h (rb_w32_ugetenv): new AP...
usa (Usaku NAKAMURA)
02:23 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
On Friday, 16 Mar 2012 at 1:13 PM, Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: [ruby-core:43310] [ruby-trunk - Feature #5008] Equal
> rights for Hash (like Array, String, Integer, Float)" on Fri, 16 Mar
> 2012 02:58:...
sunaku (Suraj Kurapati)
02:19 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
"Repeating myself, unlike other classes in the table, Hash does not have "natural" conversion from set of values, so that I don't think it's worth provide to_h method."
What does that even mean?
From a practical vantage, I use #to_...
trans (Thomas Sawyer)
01:23 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
Hi,

In message "Re: [ruby-core:43310] [ruby-trunk - Feature #5008] Equal rights for Hash (like Array, String, Integer, Float)"
on Fri, 16 Mar 2012 02:58:04 +0900, Suraj Kurapati <sunaku@gmail.com> writes:

|Request #3131 ...
matz (Yukihiro Matsumoto)
12:18 PM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
I approve `to_h` as explicit conversion to a Hash.
It should be created and implemented for NilClass, Hash, Enumerable, Struct, OpenStruct.
It would also pave the way for more generic hash splat if the proposal is accepted (see [ru...
marcandre (Marc-Andre Lafortune)
02:58 AM Feature #5008: Equal rights for Hash (like Array, String, Integer, Float)
=begin
Request #3131 was fulfilled, so here is the updated feature matrix:

| | Kernel | Implicit | Explicit | NilClass |
| Class | method | conversion | conversion | conversion |
| --------- | ...
sunaku (Suraj Kurapati)
02:12 PM Bug #5616 (Closed): * /lib/net/imap.rb exception in IMAP.new when get_response returns nil
This issue was solved with changeset r35055.
Edsard, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb (initialize): raise Net::IMAP::Error when the...
shugo (Shugo Maeda)
01:56 PM Bug #5620 (Closed): (Net::IMAP::ResponseParseError) unexpected token LBRA (expected SPACE)
This issue was solved with changeset r35054.
art , thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/net/imap.rb (rfc822_text): ignore [] after RFC822.
[ruby-...
shugo (Shugo Maeda)
01:06 PM Feature #5138: Add nonblocking IO that does not use exceptions for EOF and EWOULDBLOCK
Related: http://bugs.ruby-lang.org/issues/6154 headius (Charles Nutter)
01:05 PM Feature #6154: Eliminate extending WaitReadable/Writable at runtime
I should have mentioned that JRuby has been running this way for a while (on master) and we have had no reports of incompatibility. The concrete subclass is_a EAGAIN and is_a WaitReadable, so all typical exception-handling patterns work ... headius (Charles Nutter)
01:02 PM Feature #6154 (Closed): Eliminate extending WaitReadable/Writable at runtime
The nonblocking IO operations started extending WaitReadable or WaitWritable into the Errno::EAGAIN instance some time during the 1.9 series. This has a rather high cost, since a singleton class must be created and the global method cach... headius (Charles Nutter)
12:42 PM Bug #6151: ArgumentError of lambda shows wrong location
The reason it raises an error is that instance_eval yields one argument (the receiver), and lambdas are strict about arity -- see #2476. john_firebaugh (John Firebaugh)
12:30 PM Bug #6151 (Closed): ArgumentError of lambda shows wrong location
fixed in r35051-r35053. nobu (Nobuyoshi Nakada)
11:59 AM Bug #6151: ArgumentError of lambda shows wrong location
You need to indent with spaces, before tabs. nobu (Nobuyoshi Nakada)
06:13 AM Bug #6151: ArgumentError of lambda shows wrong location
That's fun, go to report a bug in Ruby and hit a bug in Ruby's Bug tracker.
Try again, this time with no RD crap.
Given:
#
class BlockParser < BasicObject
def initialize(data={}, &block)
@data = ...
trans (Thomas Sawyer)
06:08 AM Bug #6151 (Closed): ArgumentError of lambda shows wrong location
=begin
Perhaps there is a reason, but it sure seems like a bug to me. Given this simple class:
#
class BlockParser < BasicObject
def initialize(data={}, &block)
@data = data
instance_eval...
trans (Thomas Sawyer)
12:07 PM Bug #6142: Enumerable::Lazy#zip doesn't rewind internal enumerators
Thomas Sawyer wrote:
> A touch OT, but is Brian Candler being involved in the development of this? I don't know of anyone who has discussed and worked on this topic more over the years than Brian and I think it would be most prudent to ...
shugo (Shugo Maeda)
12:03 PM Bug #6142: Enumerable::Lazy#zip doesn't rewind internal enumerators
Innokenty Mikhailov wrote:
> a = (1..3).lazy.zip('a'..'z')
> ...
I agree that the current behavior is confusing, and the attached patch fixes it in the above case, but the patch cannot fix it in the following case:
a = (1..3).la...
shugo (Shugo Maeda)
11:25 AM Bug #6152 (Closed): Enumerator::Lazy#take
Nobuhiro IMAI wrote:
> 以下はテストにある Step クラスですが、
(snip)
> ...
正しくないですね。takeの方のバグだったので修正しました。
shugo (Shugo Maeda)
09:13 AM Bug #6152 (Closed): Enumerator::Lazy#take
=begin
以下はテストにある Step クラスですが、
class Step
include Enumerable
attr_reader :current, :args

def initialize(enum)
@enum = enum
@current = nil
@args = nil
end

def each(*args)
@args = args
...
no6v (Nobuhiro IMAI)
11:06 AM Revision ba20fe62 (git): * string.c (trnext): should advance char-wise.
[ruby-core:43335][Bug #6156]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:42 AM Revision 7af3e9f0 (git): fix unreachable warning line number
* parse.y (block_append_gen): fix unreachable warning line number.
should warn at the code, not jump.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision be2dc443 (git): fix typo
* test/ruby/test_module.rb (test_method_redefinition): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 2b906bf2 (git): verbose_warning
* test/ruby/envutil.rb (verbose_warning): should not hide execptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision d19e5328 (git): suppress warning.
* test/ruby/envutil.rb: suppress warnings.
* test/ruby/test_exception.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 36ada1b3 (git): fix indent
* test/ruby/test_exception.rb (test_exception): fix indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 9faa9109 (git): Tempfile#open
* test/ruby/test_exception.rb (test_systemexit_new,
test_exception_in_exception_equal): use Tempfile#open.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision 62cdd6e6 (git): fix argument order
* test/ruby/test_parse.rb (test_void_expr_stmts_value): expected value
comes first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:38 AM Revision a87f0aa0 (git): bug number
* test/ruby/test_syntax.rb (test_keyword_rest): give the bug number to assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:33 AM Revision 19451891 (git): * enum.c (enum_take): allocate buffer array before iteration, as well
as enum_first did.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:02 AM Revision a920c29c (git): * enum.c (enum_first): remove duplication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:45 AM Revision a157c85a (git): * load.c (ruby_init_ext): don't free the given pointer itself.
It is not guaranteed even that the pointer is on heap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
05:38 AM Revision 58d1b85c (git): * vm_eval.c (rb_mod_module_eval): fix the documentation of
class_eval to mention class variable lookup. [ruby-core:40649]
[Bug #5544]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:28 AM Revision a377ef5e (git): * vm_eval.c (rb_mod_module_eval): fix the documentation of
class_eval to mention constant lookup. [ruby-core:41718]
[Bug #5777]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:12 AM Revision 6853b44a (git): * lib/net/imap.rb (initialize): raise Net::IMAP::Error when the
connection is closed without a greeting response.
[ruby-core:40938] [Bug #5616]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:56 AM Revision ed07df5a (git): * lib/net/imap.rb (rfc822_text): ignore [] after RFC822.
[ruby-core:40945] [Bug #5620]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
03:34 AM Feature #6150 (Rejected): add Enumerable#grep_v
Please add a grep_v() method to Enumerable that behaves like the opposite of grep().
For example, if Enumerable#grep() was implemented like this:
module Enumerable
def grep pattern
select {|x| pattern =~ x }
end
end
...
sunaku (Suraj Kurapati)
03:27 AM Feature #5422: File.fnmatch != Dir.glob # {no,sets}
What if we pass a File::FNM_EXTGLOB flag to the File.fnmatch methods?
File.fnmatch? '{.g,t}*', '.gem', File::FNM_EXTGLOB
The name "extglob" comes from the Bash/Zsh option for extended globbing.
sunaku (Suraj Kurapati)
03:15 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
Hello Steve,
I'm glad my patch fixed the problem for you. :)
Regarding what changed in Ruby 1.9 to cause this problem, see this earlier response:
https://bugs.ruby-lang.org/issues/2294#note-3
And to really understand the probl...
sunaku (Suraj Kurapati)
03:09 AM Revision 5308538b (git): * ChangeLog: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:00 AM Revision 817eb7d1 (git): * vm_insnhelper.c (argument_error): use line number at the beginning
of lambda, not the first code ob its body.
[ruby-core:43314][Bug #6151]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:00 AM Revision e2ca7837 (git): * iseq.c (rb_iseq_first_lineno): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:29 AM Feature #1122: request for: Object#try
> How about just `respond` ?
>
>    foo.respond(:bar)

I like it.
-r
Anonymous
02:24 AM Feature #1122: request for: Object#try
How about 'can'?
user.can(:talk)
Just my two cents.
andhapp (Anuj Dutta)
12:26 AM Feature #1122: request for: Object#try
How about just `respond` ?
foo.respond(:bar)
And really, there's no reason it can't support delegation style *too*.
foo.respond.bar
This later form will be slower of course because it has to create an intermediate del...
trans (Thomas Sawyer)
02:22 AM Revision 29f73009 (git): * enumerator.c (lazy_take): don't enumerate an extra value.
[ruby-dev:45370] [Bug #6152]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
12:43 AM Bug #6144: regexec may allocate extra memory?
> ただ、なぜわざわざ一度 char* 型の変数に代入しているのかはよく分かりません。
あ、stk_alloc の計算のために char* 型でなければならないのを見落としていました。
k_takata (Ken Takata)
12:36 AM Bug #6144: regexec may allocate extra memory?
alloc_addr は、その後 OnigStackIndex* にキャストされて、OnigStackIndex の配列として使用されています。
OnigStackIndex は intptr_t の typedef ですので、xalloca で割り当てるサイズは合っています。
ただ、なぜわざわざ一度 char* 型の変数に代入しているのかはよく分かりません。
alloc_addr = (OnigStackIndex* )xalloca(sizeof(On...
k_takata (Ken Takata)
12:21 AM Bug #6144 (Assigned): regexec may allocate extra memory?
うーん、何か変えるとしたら、以下のような感じですかねぇ。
diff --git a/regexec.c b/regexec.c
index 2587cd9..9e31c71 100644
--- a/regexec.c
+++ b/regexec.c
@@ -446,16 +446,16 @@ onig_region_copy(OnigRegion* to, OnigRegion* from)
#define STACK_INIT(alloc_ad...
naruse (Yui NARUSE)

03/15/2012

11:30 PM Bug #6143: Onigmo allows broken regexp: /(?(x.)/
Onigmoのmasterブランチには修正を入れました。
https://github.com/k-takata/Onigmo/commit/35f530676970e42b83b5d6789dd5820101e430d7
現在のOnigmoは、条件式の条件には番号または名前による後方参照しか使えないのですが、それ以外のものをエラーではじいていませんでした。
k_takata (Ken Takata)
09:30 PM Revision a1f4163d (git): * enumerator.c (lazy_zip_func): variadic argument needs explicit cast
on the platforms where VALUE is longer than int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:29 PM Revision 641e9e7b (git): * enumerator.c (lazy_init_iterator): no need to check overflow twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:57 PM Bug #6107: Documentation Abbrev (stdlib) confusing
Patch to fix this on trunk. zmack (Andrei Bocan)
08:53 PM Revision 25ac2aaf (git): * 2012-03-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:53 PM Revision 5e726766 (git): * enumerator.c (lazy_init_iterator): Fix type error (int vs long).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
06:25 PM Feature #1122 (Rejected): request for: Object#try
Matz still hate "try", so I'll close this ticket.
Please reopen this ticket if you have good name which convince matz.
Thanks.
authorNari (Narihiro Nakamura)
05:53 PM Feature #6070 (Rejected): The scope of for loop variables
Koichi Sasada wrote:
> (2012/03/05 16:10), Shugo Maeda wrote:
> ...
Matz has the same opinion, so I'll close this ticket.
shugo (Shugo Maeda)
05:16 PM Revision 815d88b5 (git): * 2012-03-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:16 PM Revision a8182419 (git): * version.h: Increase patch level [Issue 6148]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
04:53 PM Bug #5486: rb_stat() doesn’t respect input encoding
On Thu, Mar 15, 2012 at 05:24, Nikolai Weibull <now@bitwi.se> wrote:
> 2012/3/15 U.Nakamura <usa@garbagecollect.jp>:
>> Hello,
>>
>> In message "[ruby-core:43260] Re: [ruby-core:43236] [ruby-trunk - Bug #5486][Feedback] rb_stat() do...
now (Nikolai Weibull)
04:43 PM Bug #5486 (Closed): rb_stat() doesn’t respect input encoding
naruse (Yui NARUSE)
02:59 PM Bug #5486: rb_stat() doesn’t respect input encoding
2012/3/15 Trevor Wennblom <trevor@well.com>:
> try compiling an updated version of trunk from this repository:
>  svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_3

It is ruby_1_9_3 branch, not trunk.
For trunk,
svn ...
naruse (Yui NARUSE)
02:23 PM Bug #5486: rb_stat() doesn’t respect input encoding
On 3/14/12 11:24 PM, Nikolai Weibull wrote:
> 2012/3/15 U.Nakamura<usa@garbagecollect.jp>:
>> Hello,
>>
>> In message "[ruby-core:43260] Re: [ruby-core:43236] [ruby-trunk - Bug #5486][Feedback] rb_stat() doesn’t respect input en...
Anonymous
01:29 PM Bug #5486: rb_stat() doesn’t respect input encoding
2012/3/15 U.Nakamura <usa@garbagecollect.jp>:
> Hello,
>
> In message "[ruby-core:43260] Re: [ruby-core:43236] [ruby-trunk - Bug #5486][Feedback] rb_stat() doesn’t respect input encoding"
>    on Mar.13,2012 18:03:04, <now@bitwi.se>...
now (Nikolai Weibull)
04:53 PM Bug #6148 (Closed): ruby_1_9_3 revision conflict
Generally, people who want to backport should use tool/merger.rb.
It increment patch level.
naruse (Yui NARUSE)
06:11 AM Bug #6148: ruby_1_9_3 revision conflict
For backport commits, yes. I also believe rdoc-only clarifications are important and worthy of backporting.
IMO it's not a good thing to have the same A.B.Cpxyz revision available at two different points in history, especially on rele...
jonforums (Jon Forums)
04:54 AM Bug #6148: ruby_1_9_3 revision conflict
This is because I backported a small documentation change.
Should the version info be changed in those cases too?
I'm assuming it's ok to backport rdoc changes only, although I see that there was no reply to Eric Hodel's request [r...
marcandre (Marc-Andre Lafortune)
04:47 AM Bug #6148 (Closed): ruby_1_9_3 revision conflict
Please remember to update the version info when backporting. Currently there are two 1.9.3p163's that can be built from ruby_1_9_3:
ruby 1.9.3p163 (2012-03-06 revision 34932) [i386-mingw32]
ruby 1.9.3p163 (2012-03-14 revision 350...
jonforums (Jon Forums)
04:23 PM Bug #6146 (Closed): three possible bugs by nobu
r35033,r35034,r35035 nobu (Nobuyoshi Nakada)
04:15 PM Bug #6149 (Third Party's Issue): Object#tap does not return the object it is called on in some cases
nobu (Nobuyoshi Nakada)
03:06 PM Bug #6149 (Rejected): Object#tap does not return the object it is called on in some cases
drbrain (Eric Hodel)
01:11 PM Bug #6149: Object#tap does not return the object it is called on in some cases
I see that now. I'm going to close this. rjspotter (Randall Potter)
01:06 PM Bug #6149: Object#tap does not return the object it is called on in some cases
HTTParty::Response inherits from BasicObject, which doesn't define tap. So the tap method you are calling is provided by HTTParty, not by Ruby core. john_firebaugh (John Firebaugh)
12:35 PM Bug #6149 (Third Party's Issue): Object#tap does not return the object it is called on in some cases
# gem install httparty
# then in an irb console enter :
require 'httparty'
class Foo
include HTTParty
base_uri 'http://example.com'
end
Foo.get('/').class # => HTTParty::Response
Foo.get('/').tap {|x| }.class # => String # ...
rjspotter (Randall Potter)
02:20 PM Revision 2baeb782 (git): * enum.c (rb_enum_values_pack): rename from enum_values_pack, and
remove static.
* enumerator.c (lazy_init_iterator, lazy_init_yielder,
lazy_select_func, lazy_reject_func, lazy_grep_func): handle
multiple values correctly.
* enumerator.c (lazy_grep): change the behavior when a block is
given, t...
shugo (Shugo Maeda)
01:23 PM Bug #5570: Encoding of environment variables on Windows
On Thu, Mar 15, 2012 at 02:51, U.Nakamura <usa@garbagecollect.jp> wrote:
> Hello,
>
> In message "[ruby-core:43237] [ruby-trunk - Bug #5570][Feedback] Encoding of environment variables on Windows"
>    on Mar.12,2012 06:44:04, <nobu...
now (Nikolai Weibull)
10:14 AM Revision d135138f (git): * enumerator.c (lazy_zip): rescue StopIteration returned by
Enumerator#next.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
09:25 AM Revision 032861ad (git): * enumerator.c (lazy_zip, lazy_cycle): Enumerator::Lazy#{zip,cycle}
should be eager when a block is given, to be consistent with
Enumerable#{zip,cycle}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
08:47 AM Revision ff1f6107 (git): * enumerator.c (InitVM_Enumerator): renamed Enumerable::Lazy to
Enumerator::Lazy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35040 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
07:38 AM Revision 4a1db362 (git): * enumerator.c (enumerator_lazy): added cycle to the documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
06:37 AM Revision bf87ec4e (git): * parse.y (parser_yylex): fix warning line number.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35038 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:24 AM Revision b30c4aa8 (git): * test/ruby/test_m17n.rb (assert_warning): use common method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:19 AM Revision fbdce669 (git): * enumerator.c (lazy_cycle): check argument number overflow before
creating temporary array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:16 AM Bug #6085 (Closed): Treatment of Wrong Number of Arguments
Hi,
Martin Dürst wrote:
> While we are at it, can we also change the extremely cryptic "for".
> ...
I agree the message could be improved. I'm closing this issue, let's discuss an improved wording in #6086, which also asks the ques...
marcandre (Marc-Andre Lafortune)
06:10 AM Bug #6085: Treatment of Wrong Number of Arguments
Hi,
Yusuke Endoh wrote:
> You know, making parsing easy is not the purpose or the right way.
> ...
Agreed.
> Looks good to me.
> ...
Thank you for reviewing my patch!
> I noticed some minor issues below.
> ...
Ok, fixed.
...
marcandre (Marc-Andre Lafortune)
06:04 AM Revision a258d6f4 (git): * util.c (ruby_strtod): no need to check same digit for hexdigit
twice. [ruby-dev:45363][Bug #6146]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:04 AM Revision 375aedbf (git): * parse.y (sym_check_asciionly): check ascii compatibility before
scanning for code range.
* parse.y (intern_str): set to us-ascii if ascii only.
[ruby-dev:45363][Bug #6146]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:03 AM Revision 36f6ce40 (git): * file.c (ruby_enc_find_basename): allow NULL as alllen.
[ruby-dev:45363][Bug #6146]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35033 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:49 AM Revision 65fcaf41 (git): * string.c (rb_str_conv_enc_opts): default to original encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35032 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:49 AM Revision f59caa29 (git): * hash.c (env_str_new, rb_f_getenv, env_fetch): use rb_str_conv_enc()
instead of rb_str_encode() to simplify the code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:57 AM Revision fcaee4bd (git): * win32/win32.c, include/ruby/win32.h (rb_w32_ugetenv): new API to
accept and to return UTF-8 strings.
* win32/win32.c (rb_w32_getenv): follow above change.
* win32/win32.c (rb_w32_get_environ): returns UTF-8 environment area.
* hash.c (env_str_new, rb_f_getenv, env_fetch): follow above changes.
[B...
U.Nakamura
03:31 AM Revision c6671f10 (git): * adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:00 AM Revision d18dc746 (git): * enumerator.c (lazy_cycle): add Enumerable::Lazy#cycle.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
01:39 AM Revision c037f1f6 (git): * adjust style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:31 AM Revision 9f9201b8 (git): * test/ruby/test_arity.rb (TestArity#err_mess): use assert_raise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

03/14/2012

10:31 PM Bug #6142: Enumerable::Lazy#zip doesn't rewind internal enumerators
A touch OT, but is Brian Candler being involved in the development of this? I don't know of anyone who has discussed and worked on this topic more over the years than Brian and I think it would be most prudent to seek his consul on these... trans (Thomas Sawyer)
06:25 PM Bug #6142 (Closed): Enumerable::Lazy#zip doesn't rewind internal enumerators
All enumerables passed to Enumerable::Lazy#zip are converted into lazy enumerators.
When result evaluated - ruby iterates over this enumerators while calling #next to retrieve the next value.
But those enumerators are not rewinded:
...
gregolsen (Innokenty Mikhailov)
10:12 PM Revision 724e683e (git): * vm_eval.c (check_funcall): Raise ArgumentError if respond_to?
requires more than three arguments. [Bug #6000]
* test/ruby/test_object.rb (class TestObject): Test for respond_to?
requiring more than three arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35025 b2dd03c...
drbrain (Eric Hodel)
09:23 PM Bug #6085: Treatment of Wrong Number of Arguments
Let's focus on error message consistency of WNA :-)

We'd better discuss about anything else in another thread.
Stretching a story will make the whole proposal stall.

--
Yusuke Endoh <mame@tsg.ne.jp>
mame (Yusuke Endoh)
09:04 PM Bug #6085: Treatment of Wrong Number of Arguments
Martin Dürst wrote:
> While we are at it, can we also change the extremely cryptic "for".
> ...
I second this.
When I was new to Ruby years ago, I struggled with this "for". I'm not a native English speaker and it always kept me wonder...
mfn (Markus Fischer)
05:53 PM Bug #6085: Treatment of Wrong Number of Arguments
While we are at it, can we also change the extremely cryptic "for".
Whenever I see an error message of the form "wrong number of arguments
(X for Y)". Is it X arguments given for Y arguments expected, or X
arguments expected fo...
duerst (Martin Dürst)
09:10 PM Revision 73163024 (git): * include/ruby/intern.h: Add rb_check_arity, rb_error_arity [#6085]
* array.c: Use rb_check_arity / rb_error_arity
* class.c: ditto
* enumerator.c: ditto
* eval.c: ditto
* file.c: ditto
* hash.c: ditto
* numeric.c: ditto
* proc.c: ditto
* process.c: ditto
* random.c: ditto
* re.c: ditto
* sign...
Marc-Andre Lafortune
09:10 PM Revision 35c356ea (git): * vm_insnhelper.c: improve number of arguments error in case of
optional parameters (issue #6085)
* include/ruby/intern.h: define UNLIMITED_ARGUMENTS
* test/ruby/test_arity.rb: test for above
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
08:07 PM Bug #6147 (Closed): should we check a result returned by fcntl?
たぶん kosaki さん (それともささださん?)
thread_pthread.c の rb_thread_create_timer_thread で
fcntl(timer_thread_pipe[1], F_SETFL, oflags);
の返り値チェックしなくていいの?ほかの fcntl の呼び出しでは
全部チェックしてるよ?って Coverity Scan さんが言ってます。
ユーザランドの開発者的にはここで fcntl で...
mame (Yusuke Endoh)
08:00 PM Bug #6146 (Closed): three possible bugs by nobu
なかださん
なかださんの変更が関わってそうな箇所で Coverity Scan が教えて
くれたことを 3 つほど送ります。
1 つめ。file.c について、r34372 の変更で
3566 end = name + *alllen;
という *alllen のデリファレンスがされるようになりましたが、その
あとに
3615 if (alllen)
3616 *alllen = n;
とあるよう...
mame (Yusuke Endoh)
07:51 PM Bug #6141: rails-3.2.2+1.9.3p125 の環境で SEGV が発生
=begin
Extracted backtrace from the dump;
-- C level backtrace information -------------------------------------------
/var/lib/jenkins/.rvm/rubies/ruby-1.9.3-p125/lib/libruby.so.1.9(+0x17ce58) [0x7fa1e47c3e58] vm_dump.c:796
/va...
nahi (Hiroshi Nakamura)
06:05 PM Bug #6141 (Rejected): rails-3.2.2+1.9.3p125 の環境で SEGV が発生
表題の環境で selenium のテストを実行している最中に net/http の先の何処かで SEGV が発生しました。
スタックトレースを添付します。
hsbt (Hiroshi SHIBATA)
07:48 PM Bug #6145 (Closed): two possible bugs in Onigmo
naruse さん、k-takata さん
遠藤です。
Coverity Scan さんが見つけてくれたバグの可能性 2 つです。
(ただし false positive の可能性は高い)
1 つめ。regcomp.c の compile_length_enclose_node という関数で
1222 if (node->target) {
1223 tlen = compile_length_tree(node->targe...
mame (Yusuke Endoh)
07:44 PM Bug #6144 (Closed): regexec may allocate extra memory?
naruse さん、k-takata さん
遠藤です。
多分鬼車の問題なんですが、regexec.c に
alloc_addr = (char* )xalloca(sizeof(char*) * (ptr_num));\
という行があります。(#define STACK_INIT 内)
前後見てませんが、
alloc_addr = (char* )xalloca(sizeof(char) * (ptr_num));\
または
...
mame (Yusuke Endoh)
07:40 PM Bug #6143 (Closed): Onigmo allows broken regexp: /(?(x.)/
naruse さん、k-takata さん
遠藤です。
Onigmo の条件式正規表現のパースでエラーチェックが足りないようです。
$ ./miniruby -e 'p /(?(x.)/'
/(?(x.)/
マッチさせると、未初期化変数を使って分岐とかしてしまうようです。
$ valgrind ./miniruby -e '"x"[/(?(x)/]'
(略)
==25802== Conditional jump or move depen...
mame (Yusuke Endoh)
07:17 PM Feature #5607: Inconsistent reaction in Range of String
Yui NARUSE wrote:
> What is your plan?
Short version: Make it work the way Matz described it in http://bugs.ruby-lang.org/issues/5607#note-7.
I haven't yet looked at the code, but Benoit provides some good pointers. I hope to ha...
duerst (Martin Dürst)
05:30 PM Bug #6124: remove the "spec-only gems" in Ruby 1.9.3 (was What is the purpose of "fake" gems in Ruby)
Here is another issue:
If a gem package wants to depend on a gemified piece of standard library, it should also have it in its gemspec, right? As Vit has already mentioned, we had completely unbundled the fake-gems, but we are getting a...
Anonymous
05:29 PM Bug #6140 (Rejected): test
naruse (Yui NARUSE)
05:28 PM Bug #6140 (Rejected): test
Redmineを1.3.2にしたのでテスト naruse (Yui NARUSE)
04:00 PM Revision 74bdcfe8 (git): * 2012-03-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:00 PM Revision 552adf8c (git): * enumerator.c (enumerable_lazy): fix the documentation of
Enumerable#lazy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
01:52 PM Revision 0562e3ff (git): * ChangeLog: fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
01:04 PM Revision c8860b50 (git): * enumerator.c (lazy_init_iterator): break when Qundef is returned
to make obj.drop(3).take(2) work properly.
* enumerator.c (lazy_take_while): add Enumerable::Lazy#take_while.
* enumerator.c (lazy_drop): add Enumerable::Lazy#drop.
* enumerator.c (lazy_drop_while): add Enumerable::Lazy#drop_while.
*...
shugo (Shugo Maeda)
10:29 AM Revision 0b35e9e5 (git): * enumerator.c (lazy_take): add Enumerable::Lazy#take.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
09:41 AM Revision 0d94434e (git): * enumerator.c: use long for array indices.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
09:26 AM Revision 449c8a2b (git): * enumerator.c: moved the comment of StopIteration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
08:56 AM Revision cc3d03b1 (git): * numeric.c (flodivmod): must through the same pass if HAVE_FMOD or not.
this is a bugfix of r35013.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
07:42 AM Revision 005953a1 (git): * test/test_tmpdir.rb (TestTmpdir#test_world_writable): skip on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:10 AM Revision 4c2e2d8b (git): * numeric.c: fix flodivmod for cornercases [Bug #6044]
add ruby_float_mod
* insns.def (opt_mod): use ruby_float_mod
* internal.h: declare ruby_float_mod
* test/ruby/test_float.rb: tests for above
* test/ruby/envutil.rb: create helper assert_is_minus_zero
git-svn-id: svn+ssh://ci.ruby-la...
Marc-Andre Lafortune
05:16 AM Bug #6137: openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
Oh, thanks for the hint! Yes, now it makes sense why MD5 was used. I still think we don't need a crypto-strength hash just to simply bound a value by length, especially if it's not critical to security otherwise. We could use Object#hash... MartinBosslet (Martin Bosslet)
03:58 AM Bug #6137: openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
SHA-1 would work too - for a few years, until it's cryptographically broken enough to no longer be FIPS approved, like MD5 is. But if you could do it without hashing, that would quash the problem forever.
Ah - here's why to hash it: h...
jared.jennings.ctr (Jared Jennings)
02:25 AM Bug #6137 (Assigned): openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
Thank you for your detailed analysis! Judging from OpenSSL's documentation [1] the parameter can potentially be any binary data and should not be critical for the overall security, so it might be possible to just use no hash at all. I'll... MartinBosslet (Martin Bosslet)
12:43 AM Bug #6137 (Closed): openssl: hardcoded MD5 use leads to SSL server failure in FIPS mode
=begin
I've got a host configured to be compliant with ((<U.S. Federal Information Processing Standard 140-2|URL:http://csrc.nist.gov/publications/fips/fips140-2/fips1402.pdf>)) (FIPS 140-2). On this host, the OpenSSL library refuses to...
jared.jennings.ctr (Jared Jennings)
04:49 AM Revision 4bb729a2 (git): * 2012-03-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:49 AM Revision 45086d1b (git): merge revision(s) 35010:
* variable.c: Simplify rdoc for remove_const [Bug #5354]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@35011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:48 AM Revision 092db4dc (git): * variable.c: Simplify rdoc for remove_const [Bug #5354]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
02:29 AM Revision 4bce9fc7 (git): more GCable
* test/test_weakref.rb (make_weakref): more GCable, probably.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:44 AM Bug #6134: Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
Alright, so it is caused by something in 1.9.3. Thanks, that already helps a lot! MartinBosslet (Martin Bosslet)
01:44 AM Revision cb1d2908 (git): * enumerator.c (lazy_grep_func): should use === instead of =~, as
well as Enumerable#grep
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 8f30190d (git): InitVM_Enumerator
* enumerator.c (InitVM_Enumerator): split from Init_Enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 8cdfe403 (git): Init_Enumerator
* enumerator.c (Init_Enumerator): initialize method IDs first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:35 AM Revision 48f9f0bd (git): method_ids
* template/id.h.tmpl (method_ids): define at once predefined method IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/13/2012

11:16 PM Revision 6b452591 (git): * enumerator.c (lazy_zip_func): use each for non-Array objects.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
11:08 PM Revision 22434473 (git): * enumerator.c (lazy_zip): add Enumerable::Lazy#flat_map.
* enumerator.c (lazy_lazy): just returns self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
10:56 PM Revision f24d9fcd (git): * ext/date/date_core.c (datetime_s_now): [ruby-core:43256].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
10:34 PM Bug #6134: Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
I don't believe OpenSSL has been upgraded, but, running "openssl version" gives me:
OpenSSL 0.9.8r 8 Feb 2011
I reinstalled 1.9.2-p318 (and 1.9.2-p180) and everything worked as expected (same as before - no segfault). I then reinstalle...
mattv (Matt Venables)
05:35 AM Bug #6134 (Assigned): Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
Thank you for reporting this issue. Could you please verify that your (native) OpenSSL library has not been upgraded in the meantime? If it was, could you please additionally check if the problem still does not occur when using a re-inst... MartinBosslet (Martin Bosslet)
01:44 AM Bug #6134 (Closed): Ruby crashes when calling OpenSSL::PKCS7.new with invalid PKCS7 data
Reproducing steps:
Run the following script in 1.9.3-p125 (it is attached to the issue as well)
require 'openssl'
contents = File.read(__FILE__)
begin
OpenSSL::PKCS7.new(contents)
puts "OK"
rescue => e
puts "Error!"
p...
mattv (Matt Venables)
10:00 PM Bug #5989 (Closed): Keyword spash is syntax error when there are no explicit keyword arguments
This issue was solved with changeset r34999.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* compile.c (iseq_set_arguments): keyword rest arg without keywor...
nobu (Nobuyoshi Nakada)
09:59 PM Bug #5989 (Open): Keyword spash is syntax error when there are no explicit keyword arguments
nobu (Nobuyoshi Nakada)
03:17 PM Bug #5989 (Closed): Keyword spash is syntax error when there are no explicit keyword arguments
This issue was solved with changeset r34998.
Yura, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* parse.y (block_param, f_args): add rules for the case arguments...
nobu (Nobuyoshi Nakada)
08:53 PM Bug #6085: Treatment of Wrong Number of Arguments
Hello,

2012/3/13, Marc-Andre Lafortune <ruby-core@marc-andre.ca>:
> Eric Hodel wrote:
>> Much like NameError#name and LoadError#path, why not
>> ArgumentError#expected and ArgumentError#given? Also,
>> ArgumentError#method...
mame (Yusuke Endoh)
08:53 PM Bug #6085: Treatment of Wrong Number of Arguments
Hello,

> On Mon, Mar 12, 2012 at 10:31 AM, Yui NARUSE <naruse@airemix.jp> wrote:
>> Use one of follwing:
>> * https://github.com/marcandre/ruby/compare/rb_arity_check
>> * https://github.com/marcandre/ruby/compare/rb_arity_ch...
mame (Yusuke Endoh)
12:05 PM Bug #6085: Treatment of Wrong Number of Arguments
Hi,
Eric Hodel wrote:
> Much like NameError#name and LoadError#path, why not ArgumentError#expected and ArgumentError#given? Also, ArgumentError#method could return the method name called.
We could have something similar to that,...
marcandre (Marc-Andre Lafortune)
07:27 AM Bug #6085: Treatment of Wrong Number of Arguments
Much like NameError#name and LoadError#path, why not ArgumentError#expected and ArgumentError#given? Also, ArgumentError#method could return the method name called.
This eliminates the need for parsing of the error message, but the n...
drbrain (Eric Hodel)
05:58 AM Bug #6085: Treatment of Wrong Number of Arguments
Hi,
On Mon, Mar 12, 2012 at 8:07 AM, Yusuke Endoh <mame@tsg.ne.jp> wrote:
> One concern: I'm afraid if this change affects people who parses
> ...
The error type is part of the language specs, but I feel like error messages are not ...
marcandre (Marc-Andre Lafortune)
06:23 PM Bug #5486: rb_stat() doesn’t respect input encoding
On Sun, Mar 11, 2012 at 22:41, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
>
> Issue #5486 has been updated by Nobuyoshi Nakada.
>
> Category changed from core to M17N
> Status changed from Assigned to Feedback
> Priority c...
now (Nikolai Weibull)
03:26 PM Revision db68d5ba (git): * 2012-03-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:26 PM Revision 08d81f26 (git): fix ripper
* parse.y (new_args_gen, new_args_tail_gen): fix ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:06 PM Bug #595 (Assigned): Fiber ignores ensure clause
naruse (Yui NARUSE)
01:03 PM Bug #5568 (Closed): IO#set_encoding ignores internal when the same as external only when specified as "ext:int"
This issue was solved with changeset r34997.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c (io_encoding_set): always warn if external encoding and i...
naruse (Yui NARUSE)
01:00 PM Revision 8fe3fb4c (git): * compile.c (iseq_set_arguments): keyword rest arg without keyword args.
* node.c (dump_node): dump kw_rest_arg too.
* parse.y (block_param, f_arg): more kwrest patterns.
[ruby-core:42455][Bug #5989]
* parse.y (new_args_gen): no extra kw_rest_arg if no keyword rest arg.
git-svn-id: svn+ssh://ci.ruby-lang....
nobu (Nobuyoshi Nakada)
12:37 PM Bug #5350 (Closed): WeakRef で謎の NoMethodError
This issue was solved with changeset r34995.
Makoto, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
Bug #5350
* gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][B...
nobu (Nobuyoshi Nakada)
11:15 AM Bug #4814 (Rejected): minitest 2.2.x and test/unit do not get along
Rejecting because of no feedback and I can't reproduce in my environment.
(if this issue is still reproducible, please reopen)
sorah (Sorah Fukumori)
11:06 AM Bug #4434 (Feedback): make test-all "-j10000" のように大きな並列数を与えると異常終了
r34968 の変更で IO.popen による worker プロセスの起動に失敗した時に
>ERROR: Failed to launch job process - Errno::EMFILE: Too many open files - ./miniruby
と表示されるようになったので make test-all TESTS="-j10000" で現在チケットに書いてあるような
分かりにくい異常終了の仕方にはなってないのですが問題無いでしょうか。...
sorah (Sorah Fukumori)
10:59 AM Bug #5238 (Closed): installation failure if --with-sitedir=no or --with-vendordir=no
This issue was solved with changeset r34993.
Sakuro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* tool/rbinstall.rb (prepare): skip if basedir is not defined.
...
nobu (Nobuyoshi Nakada)
09:25 AM Feature #6136 (Rejected): Add gpg signatures whenever releasing ruby source tarballs
I was one of the unfortunate people quick enough to grab the buggy version of ruby that contained bug #6040 as announced here:
http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/
Someone notified me that the md5s...
td123 (Thomas Dziedzic)
07:10 AM Bug #6132 (Rejected): Assignments don't happen correctly in "if" modifiers
This is a feature of ruby.
Ruby parses left to right, so it see "lo" on the assignment side of the if. Since no local variable "lo" has been encountered yet it must be a method. Ruby then encounters the assignment to lo and creates ...
drbrain (Eric Hodel)
06:17 AM Revision d6a977f6 (git): * parse.y (block_param, f_args): add rules for the case arguments
begin with kwrest. [ruby-core:42455][Bug #5989]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:25 AM Bug #4421: [ext/openssl] Fix RSA public key encoding
Nathaniel Talbott wrote:
> FYI, this does seem to break compatibility if you're using a fingerprint of the key for something, since (I just learned) key fingerprints are dependent on the format the key is stored in (since the fingerprin...
MartinBosslet (Martin Bosslet)
01:32 AM Bug #4421: [ext/openssl] Fix RSA public key encoding
FYI, this does seem to break compatibility if you're using a fingerprint of the key for something, since (I just learned) key fingerprints are dependent on the format the key is stored in (since the fingerprint is based on the MD5 of the... ntalbott (Nathaniel Talbott)
04:03 AM Revision db83618d (git): * io.c (io_encoding_set): always warn if external encoding and internal
encoding are identical. [ruby-core:40727] [Bug #5568]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:03 AM Revision 272d72ef (git): Fix error and show given message and match message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:37 AM Revision df058ea0 (git): Bug #5350
* gc.c: add ObjectSpace::WeakMap. [ruby-dev:44565][Bug #5350]
* lib/weakref.rb: use WeakMap instead of _id2ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:34 AM Revision 826cdd67 (git): assert_warn, assert_warning
* test/ruby/envutil.rb (assert_warn): add optional message argument.
* test/ruby/envutil.rb (assert_warning): moved from test_io_m17n.rb
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:59 AM Revision 7e82db2e (git): * tool/rbinstall.rb (prepare): skip if basedir is not defined.
[ruby-core:39135][Bug #5238]
* tool/rbinstall.rb (CONFIG.[]): check for mandatory
configurations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:59 AM Revision 8a8936cb (git): re-configure
* Makefile.in (reconfig, config.status): re-configure for version numbers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:35 AM Bug #5493 (Feedback): Commit r33357 breaks build on Debian/sparc
I cannot reproduce it on sparc Solaris 10.
ngoto (Naohisa Goto)
12:17 AM Feature #6133 (Assigned): SSLSocketをshutdownできない
http://www.openssl.org/docs/ssl/SSL_shutdown.html
に対応するメソッドがないので、送信の終わりを送れません。ただし微妙にshutdown(2)とインターフェースが違ってます。
kik (Masashi Kikuchi)

03/12/2012

11:52 PM Bug #6132 (Rejected): Assignments don't happen correctly in "if" modifiers
This works:
if lo = 3
la = lo
end
but this does not:
(la = lo) if (lo = 3)
It raises "NameError: undefined local variable or method `lo' for main:Object." But if you look at the values afterwards you get lo -> 3, la -> nil.
ibrahimtencer (Ibrahim Tencer)
11:31 PM Bug #6085: Treatment of Wrong Number of Arguments
Yusuke Endoh wrote:
> Hello, Marc-Andre
> ...
Use one of follwing:
* https://github.com/marcandre/ruby/compare/rb_arity_check
* https://github.com/marcandre/ruby/compare/rb_arity_check.diff
* https://github.com/marcandre/ruby/compar...
naruse (Yui NARUSE)
09:23 PM Bug #6085: Treatment of Wrong Number of Arguments
Hello, Marc-Andre

Sorry I was missing this ticket. Your proposal looks smart to me.

I'd like to try and review your patch, but unfortunately, I seem
to be too old to find the actual changes from github interface :-(
Could...
mame (Yusuke Endoh)
11:07 PM Bug #6131 (Closed): Ctrl-C handler do not work from exec process (Windows)
Hello,
Originally reported to TheCodeShop group: https://groups.google.com/forum/?fromgroups#!topic/thecodeshop/ZI9FY-RKYgs
The usage of "rails server" uses `exec` to spawn another process to run a server, and that process do not h...
luislavena (Luis Lavena)
09:20 PM Bug #5493: Commit r33357 breaks build on Debian/sparc
Hello,
I can't check this ticket because I have no sparc machine.
Goto-san, could you check it?
r33357 itself looks simple and benign. But it is also big
and tedious, so there may be a careless mistake.
--
Yusuke Endoh <mam...
mame (Yusuke Endoh)
07:23 PM Bug #5567 (Closed): IO#set_encoding ignores one invalid encoding unless a second argument is passed
This issue was solved with changeset r34986.
Brian, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* encoding.c (rb_find_encoding): new function find encoding from...
nobu (Nobuyoshi Nakada)
04:53 PM Bug #5570: Encoding of environment variables on Windows
On Sun, Mar 11, 2012 at 22:44, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
>
> Issue #5570 has been updated by Nobuyoshi Nakada.
>
> Status changed from Assigned to Feedback
> Target version set to 2.0.0
>
> Which codepage shoul...
now (Nikolai Weibull)
06:44 AM Bug #5570 (Feedback): Encoding of environment variables on Windows
Which codepage should be used there, ACP or OEMCP? nobu (Nobuyoshi Nakada)
12:10 AM Bug #5570: Encoding of environment variables on Windows
Correct,
A example that reproduces the issue:
luislavena (Luis Lavena)
12:05 AM Bug #5570 (Assigned): Encoding of environment variables on Windows
Ah, you are saying "use Wide API". naruse (Yui NARUSE)
03:17 PM Revision 7f199d12 (git): Add missing assert_warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
03:12 PM Revision 6c698654 (git): * 2012-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:12 PM Revision f0f777bc (git): * enumerator.c (enumerable_lazy): added the documenation of Enumerable#lazy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e shugo (Shugo Maeda)
02:56 PM Bug #5847 (Closed): Old Ruby 1.8 state flag for yield node appears to be unused
This issue was solved with changeset r34984.
Thomas, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* node.h (NEW_YIELD), parse.y (new_yield_gen): array-values fla...
nobu (Nobuyoshi Nakada)
01:49 PM Feature #6129: String#each_lineにおけるmemmem()の利用
=begin
確認したい点があります。
* パラグラフモードでも効果があるか
* マルチバイト文字の途中にマッチした場合はどうなるか
また、追加されたコードが既存のコードとかなり重複しているように見えます。
重複を減らすのは難しいでしょうか。
=end
nobu (Nobuyoshi Nakada)
12:54 PM Bug #5833 (Closed): [mingw] trivial patch for thread.c build warning
nobu (Nobuyoshi Nakada)
12:47 PM Bug #5829: /dl/test_cptr.rb Segmentation fault on Ruby 1.9.3 P0
Seems like a bug in the test code. nobu (Nobuyoshi Nakada)
12:44 PM Bug #5473 (Closed): Raise in method_missing causes infinite loop
This issue was solved with changeset r34983.
Peter, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* vm_method.c (Init_eval_method): copy basic methods to Exceptio...
nobu (Nobuyoshi Nakada)
11:19 AM Revision b681457f (git): * lib/tmpdir.rb (Dir::tmpdir): test the current directory suitable for
temporary directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
11:09 AM Revision 5e3009aa (git): * lib/fileutils.rb (fu_have_symlink?): specify TypeError for rescue
clause.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:24 AM Bug #5374 (Feedback): Weird SecurityError with ruby1.9, File.stat/Dir.glob and $SAFE=1
Does this happen with recent versions? nobu (Nobuyoshi Nakada)
10:23 AM Revision 33ceea5c (git): * encoding.c (rb_find_encoding): new function find encoding from
arbitrary object as a pointer to rb_encoding, and return NULL if
not found.
* io.c (io_encoding_set): just warn unsupported encodings, but not
exception. [ruby-core:40726] [Bug #5567]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
nobu (Nobuyoshi Nakada)
10:03 AM Revision c60602ac (git): * vm_method.c (Init_eval_method): respond_to? and
respond_to_missing? are public.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:21 AM Feature #6130 (Closed): inspect using to_s is pain
Every time I define #to_s on a class I have to remember to also redefine #inspect. It's annoying and has led me to waste hours debugging b/c the errors that can occur from it often seem strange and unrelated.
I think #inspect should h...
trans (Thomas Sawyer)
06:41 AM Bug #5486 (Feedback): rb_stat() doesn’t respect input encoding
Does this issue still occur? nobu (Nobuyoshi Nakada)
05:56 AM Revision c5feeb9a (git): * node.h (NEW_YIELD), parse.y (new_yield_gen): array-values flags
has been already obsolete. patch by Thomas Enebo.
[ruby-core:41929][Bug #5847]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:44 AM Revision a2229db3 (git): * vm_method.c (Init_eval_method): copy basic methods to Exception.
[ruby-core:40287][Bug #5473]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:13 AM Revision b19f3a8a (git): * eval_jump.c (rb_exec_end_proc): remember the latest exit status.
[ruby-core:43173][Bug #5218]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:32 AM Revision 90b7ddb8 (git): Exclude json/add/complex.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

03/11/2012

11:59 PM Bug #5570: Encoding of environment variables on Windows
On Sun, Mar 11, 2012 at 15:36, Yui NARUSE <naruse@airemix.jp> wrote:
>
> Issue #5570 has been updated by Yui NARUSE.
>
> Status changed from Open to Rejected
>
> Ruby uses AreFileApisANSI() ? GetACP() : GetOEMCP() on Windows...
now (Nikolai Weibull)
11:36 PM Bug #5570 (Rejected): Encoding of environment variables on Windows
Ruby uses AreFileApisANSI() ? GetACP() : GetOEMCP() on Windows, not environment variables. naruse (Yui NARUSE)
11:35 PM Feature #6129 (Closed): String#each_lineにおけるmemmem()の利用
memmem()というGNU拡張のライブラリ関数がありますが、string.cのrb_str_each_line()で可能であればこのmemmem()を利用する事を提案します。
次のベンチマークを実行しました。
require 'benchmark'
str = "hogehifuga" * 100_0000
Benchmark.bm do |x|
x.report do
str.each_line("hi") {}
end...
Glass_saga (Masaki Matsushita)
10:37 PM Revision 48b5b163 (git): * lib/tmpdir.rb: update document for changing
FileUtils.remove_entry_secure to FileUtils.remove_entry.
* NEWS: add incompatiblity note for lib/tmpdir.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:36 PM Bug #5846 (Closed): JSON.parse with :object_class causes SEGV
This issue was solved with changeset r34971.
Hiroshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* ext/json: Merge 164a75c8bd2007d32c4d7665d53140d8fc126dcd.
...
naruse (Yui NARUSE)
10:19 PM Revision bcb9e567 (git): * lib/tmpdir.rb (Dir.tmpdir): should not use world-writable but
non-sticky directory.
* lib/tmpdir.rb (Dir.mktmpdir): check the parent directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:04 PM Revision 42437780 (git): * random.c (Init_Random): removed rb_Random_DEFAULT and register as
mark-object instead of global variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:03 PM Revision b87f2fe1 (git): * random.c (random_s_rand): ensure default PRNG is re-initialized
after fork. patched by Eric Wong. [ruby-core:41209][Bug #5661]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:52 PM Revision 06279f0e (git): * ext/json: properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:48 PM Revision 1100fdfc (git): * lib/fileutils.rb: remove tailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:53 PM Bug #5577 (Assigned): test/testunit/test_parallel.rb causes NoMethodError when file descriptor is limited to 30.
とりあえず根本の原因である worker の起動に失敗したときはエラーメッセージを表示して exit 1 するようにしました。 (r34968)
ただ、(ulimit -n 30; make test-all TESTS='test/testunit/test_parallel.rb') は治す前から OS X だと刺さって
timeout 待ちになるのでそこを調査してます。
lib/test/unit.rb:464 の while _io=IO.sele...
sorah (Sorah Fukumori)
05:28 PM Bug #5577 (Closed): test/testunit/test_parallel.rb causes NoMethodError when file descriptor is limited to 30.
This issue was solved with changeset r34968.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* lib/test/unit.rb: Put error message into STDERR if failed to l...
sorah (Sorah Fukumori)
06:36 PM Bug #4044 (Feedback): Regex matching errors when using \W character class and /i option
naruse (Yui NARUSE)
06:29 PM Bug #5684 (Rejected): [[Ruby 1.9:]] Socket doesn't respect default external encoding
naruse (Yui NARUSE)
06:01 PM Bug #6128 (Rejected): Thread#run does not work within signal handler
trap handler (registered block) run on main thread. So Thread#run for main thread doesn't work.
You should use other ways to communicate trap handler and main thread, for example, Queue.
$q = Queue.new
trap(:INT){$q.push nil}...
ko1 (Koichi Sasada)
12:10 PM Bug #6128 (Rejected): Thread#run does not work within signal handler
If I stop Thread.main, calling Thread.main.run in a signal handler does not wake up the main thread.
Please see this gist with a simple reproducible example:
https://gist.github.com/2014773
mperham (Mike Perham)
05:42 PM Revision 966eacca (git): * 2012-03-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:42 PM Revision 199d1fa9 (git): Add missing files of r34971,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:35 PM Bug #6046 (Third Party's Issue): Berkeley DB dbm_open in libc is called even if --with-dbm-type=gdbm_compat is specified on FreeBSD
田中さんが 3rd party issue で良いといったので,
このチケットは 3rd party issue.
ko1 (Koichi Sasada)
05:27 PM Bug #5939 (Rejected): ActiveSupport::Callbacks で SEGV
では一旦Rejectしておきます。 sorah (Sorah Fukumori)
05:25 PM Bug #5939: ActiveSupport::Callbacks で SEGV
この現象ですが 2/16 に 1.9.3p125 を使うようにしてから現在まで再現はしていません。 hsbt (Hiroshi SHIBATA)
05:26 PM Bug #5932: gc_mark_children で SEGV が発生
#5939 同様に 2/16 以降 1.9.3p125 を使うようにしてから再現していません。 hsbt (Hiroshi SHIBATA)
05:24 PM Bug #5985: miniruby skews "make benchmark" results
I'll change it. ko1 (Koichi Sasada)
05:20 PM Bug #5914 (Rejected): Calling extend with an anonymous module requires use of parentheses
ko1 (Koichi Sasada)
05:18 PM Bug #5882: segfault in miniruby in ruby1.9.3 crosscompile for ARM
Nice "ruby -v".
ko1 (Koichi Sasada)
05:12 PM Bug #5828: Non anonymous classes can't be frozen, cloned and then inspected
Tanaka-san says he found the reason of this issue.
ko1 (Koichi Sasada)
05:08 PM Bug #5780: test/fileutils/test_fileutils.rb:86: [BUG] Segmentation fault
We need ARM maintainer.
Endo-san, could you deliver this issue?
ko1 (Koichi Sasada)
04:57 PM Bug #5703 (Assigned): Ruby 1.9.3p0 segmentation fault (during autoload?)
ko1 (Koichi Sasada)
04:56 PM Bug #5689 (Rejected): class variables inside of instance methods inside of "class_eval"
ko1 (Koichi Sasada)
04:47 PM Bug #5627 (Feedback): [ASYNC BUG] thread_timer: select
ko1 (Koichi Sasada)
04:45 PM Bug #5616 (Assigned): * /lib/net/imap.rb exception in IMAP.new when get_response returns nil
ko1 (Koichi Sasada)
04:41 PM Bug #5544 (Assigned): Lookup scope for class variables in class_eval'd procs changed in 1.9.3
ko1 (Koichi Sasada)
04:40 PM Bug #5538: ruby memory error running minitests
I cannot reproduce this issue.
Please give me the simple way for reproducing.
mrkn (Kenta Murata)
04:38 PM Bug #5527 (Assigned): set_trace_func binding incorrect
Maybe it is implicit incompatibility between 1.8 and 1.9. No one can find out about it.
What should we do on 2.0?
ko1 (Koichi Sasada)
04:36 PM Bug #5708 (Closed): Tempfile.new(pre) with block in test_autoclose
r34129 で修正済みのようですので閉じます。 nagachika (Tomoyuki Chikanaga)
04:34 PM Bug #5519 (Feedback): Enumerator#next skips c-return hooks
ko1 (Koichi Sasada)
04:30 PM Bug #5493 (Assigned): Commit r33357 breaks build on Debian/sparc
ko1 (Koichi Sasada)
04:29 PM Bug #5487 (Assigned): popen3 + timeout regression in ruby 1.9
ko1 (Koichi Sasada)
04:27 PM Bug #5486 (Assigned): rb_stat() doesn’t respect input encoding
ko1 (Koichi Sasada)
04:24 PM Bug #5473 (Assigned): Raise in method_missing causes infinite loop
ko1 (Koichi Sasada)
04:23 PM Bug #5468 (Assigned): IPSocket#valid_v6? in ipaddr.rb contains incorrect regexps
ko1 (Koichi Sasada)
04:20 PM Bug #5449 (Assigned): nested constant opasign not working
ko1 (Koichi Sasada)
04:17 PM Bug #5437: Using fibers leads to huge memory leak
I'll review it later. however, i think it is libc (malloc) issue...
ko1 (Koichi Sasada)
04:15 PM Feature #5431 (Feedback): Check issue with ruby-1.9.3-rc1
ko1 (Koichi Sasada)
04:14 PM Bug #5406 (Assigned): inconsistent odd-length array rejection in Hash[*ary] vs Hash[ary]
ko1 (Koichi Sasada)
04:12 PM Bug #5385 (Feedback): ~/gems/gems/posix-spawn-0.3.6/lib/posix_spawn_ext.bundle: [BUG] Segmentation fault ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
ko1 (Koichi Sasada)
04:05 PM Bug #5368: ensure節でsleepするようなThreadがあるとインタプリタが終了しない
今日,非同期例外の話が出たので,それと交えて考えます.
多分.
ko1 (Koichi Sasada)
03:52 PM Bug #5357 (Assigned): Indentation of nested operators should nest
ko1 (Koichi Sasada)
03:51 PM Bug #5356 (Assigned): Add ? to ruby-operator-re
ko1 (Koichi Sasada)
03:51 PM Bug #5353 (Assigned): TLS v1.0 and less - Attack on CBC mode
ko1 (Koichi Sasada)
03:49 PM Bug #5782 (Closed): File.binwrite doc and hash argument
This issue was solved with changeset r34967.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----------
* io.c: fix rdoc of `IO.binwrite` to show same as `IO.write...
sorah (Sorah Fukumori)
03:47 PM Bug #5350 (Assigned): WeakRef で謎の NoMethodError
ko1 (Koichi Sasada)
03:46 PM Bug #5339 (Assigned): ERB generates extra newlines on Windows
ko1 (Koichi Sasada)
03:45 PM Bug #5334 (Assigned): Segmentation fault in InternetExplorer IServiceProvider interface
ko1 (Koichi Sasada)
03:39 PM Bug #5328 (Assigned): Splat args are treated wrongly in instance_exec and class_exec
ko1 (Koichi Sasada)
03:33 PM Bug #5304 (Assigned): Array#pack handles objects for eg format 'E' differently than 1.8
Please discuss with matz.
However, I assign this ticket to Murata-san, because matz will ignore assignment.
Murata-san:
Please lead discussion about this issue.

ko1 (Koichi Sasada)
03:30 PM Bug #5283 (Assigned): クラスオブジェクトの clone に関する質問
ko1 (Koichi Sasada)
03:27 PM Bug #5263 (Assigned): Ruby crash when installing yard-0.7.2 installation
ko1 (Koichi Sasada)
03:27 PM Bug #5249 (Assigned): C の Proc の比較のバグ
ko1 (Koichi Sasada)
03:24 PM Bug #5238 (Assigned): installation failure if --with-sitedir=no or --with-vendordir=no
ko1 (Koichi Sasada)
03:22 PM Bug #5224 (Assigned): Yard seems to be crashing ruby.
ko1 (Koichi Sasada)
03:14 PM Bug #4413 (Rejected): Segmentation fault when using deliver for GMAIL SMTP
Rejecting because we have no feedback. sorah (Sorah Fukumori)
03:14 PM Bug #4820 (Rejected): EXC_CRASH (SIGABRT)
Rejecting because we have no feedback. sorah (Sorah Fukumori)
03:14 PM Bug #4912 (Rejected): Segmentation fault while HTTPS request
Rejecting because we have no feedback. sorah (Sorah Fukumori)
03:07 PM Bug #953: 深い入れ子の配列の取り扱いで落ちる
頑張ります. ko1 (Koichi Sasada)
02:59 PM Revision b7df3e9f (git): * pack.c (pack_unpack): when unpack('M') occurs an illegal byte
sequence, output the "=" character and the following character in
the decoded data without any transformation.
[ruby-dev:44875] [Bug #5635]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:36 PM Revision 4d8d3184 (git): * ext/json: Merge 164a75c8bd2007d32c4d7665d53140d8fc126dcd.
[ruby-core:41917] [Bug #5846]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:59 PM Revision 9d9ab5a3 (git): * ChangeLog: fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagachika (Tomoyuki Chikanaga)
10:23 AM Feature #6126: Introduce yes/no constants aliases for true/false
Hi,

(12/03/11 6:03), Yusuke Endoh wrote:
> I really hate the names "true" and "false" for another reason:
> their length should be equal. For the same reason, I also hate
> yes/no, in/out, width/height, left/right, etc.

...
nobu (Nobuyoshi Nakada)
06:23 AM Feature #6126: Introduce yes/no constants aliases for true/false
Off topic.

I really hate the names "true" and "false" for another reason:
their length should be equal. For the same reason, I also hate
yes/no, in/out, width/height, left/right, etc.

I want to see these BUGS were fixed i...
mame (Yusuke Endoh)
08:38 AM Revision cfbdbd9b (git): * ChangeLog: fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e sorah (Sorah Fukumori)
08:28 AM Revision 42b1df08 (git): * lib/test/unit.rb: Put error message into STDERR if failed to lanch
worker (job) process. [ruby-dev:44802] [Bug #5577]
* lib/test/unit/parallel.rb: If failed to increment_io, exit with code
2. [ruby-dev:44802] [Bug #5577]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34968 b2dd03c8-39d4-4d8f-98ff...
sorah (Sorah Fukumori)
06:49 AM Revision 605f4bae (git): * io.c: fix rdoc of `IO.binwrite` to show same as `IO.write` except
it opens file with mode "wb:ASCII-8BIT". [Bug #5782] [ruby-core:42592]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
sorah (Sorah Fukumori)
05:53 AM Revision 290f7cd7 (git): * 2012-03-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:53 AM Revision ed924d2f (git): cosmetic change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
 

Also available in: Atom