Project

General

Profile

Activity

From 04/04/2014 to 04/10/2014

04/10/2014

11:12 PM Bug #9726 (Closed): Incorrect Proc parsing
There seems to be issue in parsing with white space:
The code below works:
~~~ruby
proc_issue (Proc.new { |n|
"Do something"
})
~~~
That code causing parsing error (removing white space makes it working `proc_issue` (`Proc...
svladb (Vladimir Smelyansky)
10:19 PM Feature #9725 (Open): Do not inspect NameError target object unless verbose
At least once every few months, we get an error report of JRuby raising a memory error where MRI does not due to `NameError`'s `Message` object holding a reference to an object that's too large to inspect. I propose that this inspection ... headius (Charles Nutter)
06:21 PM Misc #9724 (Open): Warnings in Ruby: allow per-file directives to i.e. suppress warnings
Hi,
A bit of intro.
I usually run all my ruby code with -w. I feel that it gives me some more security if the
ruby parser does not have to think about ambiguous code.
Now this works perfect for my own code - I know what I have ...
shevegen (Robert A. Heiler)
02:46 PM Revision 35803abd (git): Add [DOC] to my previous entry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
02:46 PM Revision 537dac27 (git): * lib/net/ftp.rb (Net::FTP#login): [DOC] The default password for
anonymous login was changed to "anonymous@" in r25313.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
02:41 PM Bug #9723 (Rejected): #size does not trigger evaluation of lazy enumerator.
The purpose of `size` is to return the number of elements yielded by an Enumerator without consuming it, i.e. without iterating it.
If `enum.size` returns an integer, than `enum.size == enum.to_a.size` must be true.
In your first e...
marcandre (Marc-Andre Lafortune)
09:46 AM Bug #9723 (Rejected): #size does not trigger evaluation of lazy enumerator.
Here is the code which shows weird behariour
### Steps to reproduce
`$ irb
2.1.1 :001 > [1, 2, 3].lazy.select{ |e| e%2 == 1}.size
=> nil
2.1.1 :002 > [1, 2, 3].lazy.select{ |e| e%2 == 1}.to_a
=> [1, 3]
2.1.1 :003 > [1, 2, 3]...
zekefast (Zeke Fast)
01:24 PM Bug #9699: Cannot require .so file on Windows if the file path is unicode (Includes patch)
[for branch maintainers]
r45523 depends on a new function introduced at r45521.
And test script was fixed at r45551.
nagachika (Tomoyuki Chikanaga)
12:47 PM Bug #9718: Segmentation fault is occurred on trunk and 2.1
I confirmed that porting r45553 back to 2.1 is resolved this issue on 2.1.
Please backport it into ruby_2_1 branch.
mrkn (Kenta Murata)
10:16 AM Bug #9718 (Closed): Segmentation fault is occurred on trunk and 2.1
Applied in changeset r45553.
----------
* array.c (rb_ary_modify): remember shared array owner if a shared
array owner is promoted and a shared array is not promoted.
Now, shared array is WB-unprotected so that shared arrays are not...
ko1 (Koichi Sasada)
03:10 AM Bug #9718 (Assigned): Segmentation fault is occurred on trunk and 2.1
With `RGENGC_CHECK_MODE=4`, lots of messages emitted:
~~~
verify_internal_consistency_reachable_i: WB miss 0x7fe65187f598 (T_ARRAY) -> 0x7fe65187f110 (proc)
~~~
The values of proc varies but T_ARRAY does not change.
nobu (Nobuyoshi Nakada)
10:23 AM Revision 5877dcbb (git): * test/ruby/test_array.rb: remove useless `assert'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e ko1 (Koichi Sasada)
10:16 AM Revision f19bf5ba (git): * array.c (rb_ary_modify): remember shared array owner if a shared
array owner is promoted and a shared array is not promoted.
Now, shared array is WB-unprotected so that shared arrays are not
promoted. All objects referred from shared array should be marked
correctly.
[ruby-core:61919] [ruby-t...
ko1 (Koichi Sasada)
10:01 AM Revision be512007 (git): * gc.c (gc_verify_internal_consistency): move lines and enable
allrefs_dump() on RGENGC_CHECK_MODE >= 4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
07:39 AM Revision cf0a0c5a (git): explicitly specify ::File
There's Bug::File in test/-ext-/file/test_stat.rb.
It prevent constan search with `File`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
07:19 AM Revision b8eb8997 (git): * addr2line.c (append_obj): clear allocated memory.
* addr2line.c (rb_dump_backtrace_with_lines): free `base_addrs'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:21 AM Bug #9722: Failure with multiple keyword arguments
Is this the same as #9669 ? phluid61 (Matthew Kerwin)
06:04 AM Bug #9722 (Closed): Failure with multiple keyword arguments
I am running ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
Given the following person class:
~~~ruby
class Person
attr_reader :name, :age
def initialize name:, age:
@name = name
@age = age
end...
tomciopp (Thomas Cioppettini)
05:41 AM Revision ddffb9bb (git): * gc.c (rb_gc_writebarrier_unprotect_promoted): disable to dump debug
message when RGENGC_CHECK_MODE == 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
05:38 AM Bug #9607: Change the full GC timing
GC.promote/allow_promote can work in some cases, but I consider it too
ugly; as ugly as OobGC. It would also be error prone and hard to work
in multithreaded situations.

I would rather have work towards automatic run-time optimiza...
normalperson (Eric Wong)
04:05 AM Bug #9607: Change the full GC timing
I wonder if it might not be better to give the user control? Specifically, consider a web application. It would make sense to hold off promoting objects created during a call-response cycle until the end of the cycle. But there is no ... Student (Nathan Zook)
03:51 AM Bug #9721 (Closed): super: no superclass method in Ruby 2.1.1
Below code will result into error:
~~~
super: no superclass method `foo' for #<Object:0x002b0430670fe8>
~~~
However, it can pass with Ruby 1.9 and I am not sure if it's feature changes or bug.
~~~ruby
module A
def foo
...
wehu (Wei Hu)
03:40 AM Revision 4a0e3ccf (git): gc.c: check rgengc_report argument
* gc.c (rgengc_report): use __VA_ARGS__ if possible.
* gc.c (rgengc_report_body): check argument.
* gc.c (heap_page_allocate): fix missing argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45548 b2dd03c8-39d4-4d8f-98ff-823fe...
nobu (Nobuyoshi Nakada)
03:40 AM Revision 04de1d7d (git): gc.c: do nothing unless USE_RGENGC
* gc.c (gc_verify_internal_consistency): always do nothing unless
USE_RGENGC is set, no local variable needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:40 AM Revision 1a00d076 (git): gc.c: adjust indent
* gc.c (RVALUE_DEMOTE_FROM_YOUNG, RVALUE_DEMOTE_FROM_OLD): adjust
indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:07 AM Bug #9716: FileTest.exist? does not convert relative path to absolute path before testing existence
Or always `File.exist?(path.sub(/\A~/, './~'))` and so on.
Do you prefer this?
nobu (Nobuyoshi Nakada)
03:02 AM Bug #9716: FileTest.exist? does not convert relative path to absolute path before testing existence
If they do it, you have no way to test files start with '~'. nobu (Nobuyoshi Nakada)
02:21 AM Bug #9720 (Assigned): [Doc] Proofreading of Net::IMAP docs
Thanks! zzak (zzak _)
01:57 AM Bug #9720 (Closed): [Doc] Proofreading of Net::IMAP docs
This patch improves the English grammar and consistency of the Net::IMAP documentation. kjperry (Katelyn Perry)
01:27 AM Bug #9655 (Third Party's Issue): Build failure of Arch linux
nobu (Nobuyoshi Nakada)

04/09/2014

11:16 PM Revision fdddeda6 (git): * 2014-04-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:16 PM Revision f0cbb868 (git): * signal.c (check_stack_overflow): Don't use ucontext_t if ucontext.h
is not available.
Fixes build on Android (x86).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:32 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
It seems like the fix might not make it out until 2.2.
If anyone runs into this while on 2.1, I was able to stop the segfaults by using BigDecimal coercion instead of to_d (`BigDecimal_coerce` has the GC guard). If you're using the m...
tiegz (Tieg Zaharia)
09:49 PM Bug #9716: FileTest.exist? does not convert relative path to absolute path before testing existence
Nobuyoshi Nakada wrote:
> Methods of `FileTest` don't expand the arguments implicitly.
Shouldn't they do that? I mean, I can understand `FileTest` not doing it, but `Pathname#exist?` has the same behavior, and I think this is kinda s...
101b147ch (Mario Maia)
04:10 AM Bug #9716 (Rejected): FileTest.exist? does not convert relative path to absolute path before testing existence
Methods of `FileTest` don't expand the arguments implicitly. nobu (Nobuyoshi Nakada)
07:58 PM Bug #9718: Segmentation fault is occurred on trunk and 2.1
Reproducible on ruby 2.2.0dev (2014-04-09 trunk 45543) [x86_64-linux]
Not reproducible on ruby 2.0.0p451 [x86_64-linux]

I tried the pure Ruby thread.rb from 2.0.0 with trunk, but the segfault
still happens, so I do not think this i...
normalperson (Eric Wong)
01:07 PM Bug #9718 (Closed): Segmentation fault is occurred on trunk and 2.1
The following code occurs segmentation fault on trunk and 2.1.
```ruby
require 'thread'
queue = Queue.new
thread = Thread.start do
loop do
queue.pop.call
end
end
loop do
queue << -> do
p Time.now
sle...
mrkn (Kenta Murata)
07:51 PM Bug #9719 (Closed): longjmp causes uninitialized stack frame on threaded procs
I'm developing a script that uses tiny_tds and mechanize. There is an implementation of threads spawning connections to a database(tiny_tds) using transactions and rescuing deathlocks, to one site (using mechanize). There are 6 threads s... angelux (Brian Martinez)
02:41 PM Feature #5663: Combined map/select method
I found this issue looking for a single-pass alternative to `.map{...}.compact`.
The former example uses `{ |i| i + 1 if i.even? }`, which reads almost like a comprehension and has a clear separation between the condition and the tran...
epidemian (Demian Ferreiro)
02:32 PM Revision 3f05ee0f (git): Add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:30 PM Bug #9717 (Closed): [BUG] setup_arg: unknown node: NODE_DVAR
Applied in changeset r45542.
----------
* gc.c (`mark_current_machine_context`): Call `SET_STACK_END`.
This reverts a hunk of r40703 by ko1.
This fixes [ruby-dev:48098] [Bug #9717].
akr (Akira Tanaka)
10:54 AM Bug #9717: [BUG] setup_arg: unknown node: NODE_DVAR
akr (Akira Tanaka)
10:42 AM Bug #9717 (Closed): [BUG] setup_arg: unknown node: NODE_DVAR
以下のようにすると、[BUG] setup_arg: unknown node: NODE_DVAR というメッセージが出て異常終了します。

% ./miniruby -e 'GC.stress = true; eval("foo += bar")'
-e:1: [BUG] setup_arg: unknown node: NODE_DVAR

ruby 2.2.0dev (2014-04-09 trunk 4...
akr (Akira Tanaka)
02:30 PM Revision 8a8221e6 (git): * gc.c (mark_current_machine_context): Call SET_STACK_END.
This reverts a hunk of r40703 by ko1.
This fixes [ruby-dev:48098] [Bug #9717].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
02:15 PM Bug #9655: Build failure of Arch linux
It seems that this is a GCC version specific issue.
I cannot reproduce this issue on archlinux with both 2.1.0 and 2.0.0-p353.
~~~
[root@arch ~]# uname -a
Linux arch 3.13.8-1-ARCH #1 SMP PREEMPT Tue Apr 1 12:19:51 CEST 2014 x86_6...
phasis68 (Heesob Park)
12:05 PM Revision 960c8ab1 (git): * process.c (OBJ2UID1): Defined even if getpwnam_r is not usable.
(OBJ2GID1): Defined even if getgrnam_r is not usable.
This fixes compilation error on Android.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:07 AM Feature #9713 (Assigned): __FILE__ return unexpected encoding - breaks Dir.glob
Thomas Thomassen wrote:
> In my test `__FILE__` is returned in the OEM encoding - not filesystem encoding.
So, reopened.
usa (Usaku NAKAMURA)
09:03 AM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Nobuyoshi Nakada wrote:
> * encoding.c (rb_enc_default_internal): fix rdoc. `__FILE__` is
> ...
In my test `__FILE__` is returned in the OEM encoding - not filesystem encoding.
And is it by design that `__FILE__` will return a differ...
thomthom (Thomas Thomassen)
06:17 AM Feature #9713 (Closed): __FILE__ return unexpected encoding - breaks Dir.glob
Applied in changeset r45539.
----------
encoding.c: fix rdoc of `__FILE__`
* encoding.c (rb_enc_default_internal): fix rdoc. `__FILE__` is
in filesystem encoding but not `default_internal`.
[ruby-core:61894] [Bug #9713]
nobu (Nobuyoshi Nakada)
08:27 AM Revision 2291ff2e (git): ossl.c: OPENSSL_LIBRARY_VERSION
* ext/openssl/ossl.c (Init_openssl): add constant OPENSSL_LIBRARY_VERSION
which tells the version running OpenSSL. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:17 AM Revision 2c12deaf (git): encoding.c: fix rdoc of `__FILE__`
* encoding.c (rb_enc_default_internal): fix rdoc. `__FILE__` is
in filesystem encoding but not `default_internal`.
[ruby-core:61894] [Bug #9713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45539 b2dd03c8-39d4-4d8f-98ff-823fe6...
nobu (Nobuyoshi Nakada)
05:45 AM Revision 52b6be0a (git): * test/ruby/test_gc.rb: more long timeout.
This test failed under RGENGC_CHECK_MODE >= 2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ko1 (Koichi Sasada)
04:07 AM Bug #9710 (Closed): __builtin_setjmp/longjmp causes SEGV with mingw
Applied in changeset r45537.
----------
configure.in: no __builtin_setjmp on x64-mingw
* configure.in: get rid of __builtin_setjmp/__builtin_longjmp on
x64-mingw, which causes SEGV with callcc.
[ruby-core:61887] [Bug #9710]
nobu (Nobuyoshi Nakada)
04:07 AM Revision 1edaa6d2 (git): configure.in: no __builtin_setjmp on x64-mingw
* configure.in: get rid of __builtin_setjmp/__builtin_longjmp on
x64-mingw, which causes SEGV with callcc.
[ruby-core:61887] [Bug #9710]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:50 AM Revision 5c7564c9 (git): string.c: remove unnecessary terminator space
* string.c (str_buf_cat): remove unnecessary terminator space,
since the capacity does not include its length but RESIZE_CAPA()
considers it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:45 AM Bug #9709 (Closed): Large string causes SEGV with x64-mingw32
Applied in changeset r45534.
----------
string.c: fix capacity
* string.c (`str_buf_cat`): should round up the capacity by 4KiB,
but not number of rooms. [ruby-core:61886] [Bug #9709]
nobu (Nobuyoshi Nakada)
03:45 AM Revision f2ba9570 (git): * 2014-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:44 AM Revision 68537a42 (git): string.c: fix capacity
* string.c (str_buf_cat): should round up the capacity by 4KiB,
but not number of rooms. [ruby-core:61886] [Bug #9709]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

04/08/2014

05:22 PM Bug #9716 (Rejected): FileTest.exist? does not convert relative path to absolute path before testing existence
`FileTest.exist?(Pathname.new('~/derp').expand_path) => true`
`FileTest.exist?(Pathname.new('~/derp')) => false`
101b147ch (Mario Maia)
01:55 PM Revision 0192e15b (git): * lib/mkmf.rb (MakeMakefile#dir_config): Improve documentation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Akinori MUSHA
01:45 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
I'm starting to wonder if the three bugs I recently files could all go under one: that the behaviour described under Encoding.default_internal= isn't happening for all the elements it lists. The issues I'm experiencing appear to would ha... thomthom (Thomas Thomassen)
12:15 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Referringthe docs (http://www.ruby-doc.org/core-2.1.1/Encoding.html#method-c-default_external-3D) to `Encoding.default_internal=`, `__FILE__` should return strings according to the default internal - but when using `-E` to set it I don't... thomthom (Thomas Thomassen)
01:36 PM Revision d37460d7 (git): * 2014-04-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:36 PM Revision bdf4eb06 (git): * gc.c: rename `RGENGC_THREEGEN' to `RGENGC_AGE2_PROMOTION'.
* gc.c (rgengc_rememberset_mark): don't promote, but remain in
remember set for infant objects.
* gc.c (RVALUE_PROMOTE_INFANT, RVALUE_PROMOTE_YOUNG): count numbers
in these functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tr...
ko1 (Koichi Sasada)
12:12 PM Bug #9712: Dir.entries replace Unicode character with questionmarks
Additional info:
I've made the RB files have `# encoding: UTF-8` and set `-E UTF-8:UTF-8` which from my understanding of the documentation should affect the encoding returned by `Dir`:
~~~
* call-seq:
* Encoding.default_inter...
thomthom (Thomas Thomassen)
12:34 AM Bug #9712 (Assigned): Dir.entries replace Unicode character with questionmarks
zzak (zzak _)
12:08 PM Bug #9715 (Closed): ENV data yield ASCII-8BIT encoded strings under Windows with unicode username
My testing scenario:
English Windows, Unicode username: てすと
Home directory: C:\Users\てすと\
The values returned from ENV have different encoding depending on their content. It appear to be OEM encoding label to most value, except wh...
thomthom (Thomas Thomassen)
05:20 AM Bug #9714 (Rejected): Ruby configured to call OpenSSL engine API when it shouldn't
### (This issue is NOT related to the Heartbleed vulnerability.)
There is an issue compiling under OSX where system dependencies and homebrew dependencies get mixed together, resulting in an incorrectly configured Ruby which fails at ...
steakknife (Barry Allard)

04/07/2014

11:51 PM Bug #9695: Substring search exhibit quadratic behaviour.
For example other BM implementation, I compared with Ruby's regexp:
```ruby
12.upto(21).map do |i|
needle='a'*(2**(i-1)) + 'b'
haystack = 'a' * (2**i)
a = Time.now; haystack.include?(needle); b=Time.now
t1 = b-a
a = Ti...
naruse (Yui NARUSE)
08:45 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Looking at how Ruby determines the filesystem encoding:
http://rxr.whitequark.org/mri/source/encoding.c#1267
static int enc_set_filesystem_encoding(void)
~~~
1266 char cp[sizeof(int) * 8 / 3 + 4];
1267 snprintf(cp, sizeo...
thomthom (Thomas Thomassen)
08:30 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Thomas Thomassen wrote:
> If I need to represent a file name in the UI some way, or write to file, in a different encoding then I can do the appropriate transposing. But I don't see any reason why Ruby's file related functions under Win...
usa (Usaku NAKAMURA)
07:46 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
Usaku NAKAMURA wrote:
> But, the first case, the encoding of __FILE__ should be Windows-1252 (filesystem encoding)
> ...
Seeing how the Windows file system can use Unicode characters I would expect __FILE__ to be unicode encoded. Even ...
thomthom (Thomas Thomassen)
06:38 PM Feature #9713: __FILE__ return unexpected encoding - breaks Dir.glob
The encoding of the results of Dir.glob are the same encoding with it's parameter.
So, there is no bug about the second case.
But, the first case, the encoding of __FILE__ should be Windows-1252 (filesystem encoding)
or UTF-8 (scrip...
usa (Usaku NAKAMURA)
05:47 PM Feature #9713 (Feedback): __FILE__ return unexpected encoding - breaks Dir.glob
**C:/てすと/FILE.rb:**
~~~
# encoding: UTF-8
puts "Encoding.find 'filesystem': #{Encoding.find('filesystem').inspect}"
puts "Encoding.find 'locale': #{Encoding.find('locale').inspect}"
puts "Encoding.default internal: #{Encoding.defa...
thomthom (Thomas Thomassen)
07:40 PM Bug #9712: Dir.entries replace Unicode character with questionmarks
Usaku NAKAMURA wrote:
> check Dir.entries('Foo', encoding: 'utf-8')
Ah, well that worked. I'd been referring to the Ruby 2.0.0 docs where this argument is missing:
http://www.ruby-doc.org/core-2.0/Dir.html#method-c-entries
But wh...
thomthom (Thomas Thomassen)
06:30 PM Bug #9712 (Rejected): Dir.entries replace Unicode character with questionmarks
check Dir.entries('Foo', encoding: 'utf-8') usa (Usaku NAKAMURA)
03:46 PM Bug #9712 (Closed): Dir.entries replace Unicode character with questionmarks
My basis when testing this is that I have a computer with English OS - codepage Windows-1252. The tests might yield different result if the Windows codepage is different - so please pay attention to that if you are unable to reproduce.
...
thomthom (Thomas Thomassen)
06:50 PM Bug #1685 (Closed): Some windows unicode path issues remain
This ticket is too old and too various problems.
Now Thomas investigates many things and is making some new tickets. (Thank you!)
Please refer to them from now on.
usa (Usaku NAKAMURA)
03:13 PM Bug #9675: Marshal.load fails with recursive structures and user defined hash method
There is no documentation for `hash` that if you override it, you should not use instance variables. Either this needs to be prevented by ruby, or the documentation needs to be updated. The actual case that triggered this was `ActiveReco... ccutrer (Cody Cutrer)
12:59 PM Feature #9711 (Closed): Remove test-unit and minitest from stdlib.
ref. #9660
We are hard to maintain test-unit and minitest for standard library.
I poropose to remove to their from stdlib.
see also my patches: https://github.com/hsbt/ruby/compare/extracted-test-suite?expand=1
my solution is t...
hsbt (Hiroshi SHIBATA)
12:14 PM Bug #9697 (Closed): rb_sys_fail(getaddrinfo) - errno == 0 crashes ruby
Applied in changeset r45530.
----------
* ext/socket/socket.c (sock_s_getnameinfo): Save errno for EAI_SYSTEM.
Reported by Saravana kumar. [ruby-core:61820] [Bug #9697]
Fixed by Heesob Park. [ruby-core:61868]
akr (Akira Tanaka)
12:14 PM Revision 1aa54beb (git): * ext/socket/socket.c (sock_s_getnameinfo): Save errno for EAI_SYSTEM.
Reported by Saravana kumar. [ruby-core:61820] [Bug #9697]
Fixed by Heesob Park. [ruby-core:61868]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:23 AM Bug #9699: Cannot require .so file on Windows if the file path is unicode (Includes patch)
Can this patch be back ported to Ruby 2.1 or 2.0? thomthom (Thomas Thomassen)
08:41 AM Bug #9710 (Closed): __builtin_setjmp/longjmp causes SEGV with mingw
Now `__builtin_setjmp/__builtin_longjmp` are used with x64-mingw.
ruby 2.2.0dev (2014-04-07 trunk 45529) [x64-mingw32]
gcc version 4.8.2 20130712 (prerelease) (Built by MinGW-builds project)
.ext/include/x64-mingw32/ruby/config....
h.shirosaki (Hiroshi Shirosaki)
07:00 AM Bug #9709 (Closed): Large string causes SEGV with x64-mingw32
Creating large string causes SEGV with x64-mingw32 on Windows.
test.rb
~~~
A = ""
1000000.times do |i|
A << "a" * 100000
end
~~~
gdb backtrace of `./miniruby test.rb`
~~~
Program received signal SIGSEGV, Segmentation ...
h.shirosaki (Hiroshi Shirosaki)
06:10 AM Bug #9693: \x{} in regexp
なぜ OnigSyntaxRuby に ONIG_SYN_OP_ESC_X_BRACE_HEX8 が含まれているのか謎ですが、
挙動・仕様としてはそのままでいいんじゃないでしょうか。
"\x{a}" も許されてないし。
また、これを外したからといって最適化で消えるようになる気もあんまりしないので、気分の問題ですかねぇ。
消してもいいとは思うのでコミットしたい場合はしてくださいですが、した場合はupstreamへの反映をよろしくお願いします。
https:/...
naruse (Yui NARUSE)

04/06/2014

10:27 PM Bug #8182 (Closed): XMLRPC request fails with "Wrong size. Was 31564, should be 1501"
Applied in changeset r45529.
----------
* lib/xmlrpc/client.rb (do_rpc): don't check body length.
If HTTP content-encoding is used, the length may be different.
[Bug #8182] [ruby-core:53811]
naruse (Yui NARUSE)
10:26 PM Revision fc3b4d06 (git): * lib/xmlrpc/client.rb (do_rpc): don't check body length.
If HTTP content-encoding is used, the length may be different.
[Bug #8182] [ruby-core:53811]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:46 PM Revision d11d87c3 (git): * lib/matrix.rb: Add Matrix#cofactor [fix GH-568]
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:45 PM Revision b8ba2023 (git): * lib/matrix.rb: Add first_minor [fix GH-568]
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:45 PM Revision 1657d516 (git): * test/matrix/test_matrix: Add tests for trivial cases [fix GH-576]
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
05:45 PM Revision a5b6bde8 (git): * 2014-04-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:45 PM Revision bcf8dd10 (git): * lib/matrix: Handle empty diagonal matrix case [fix GH-576]
Patch by gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:52 PM Feature #9704: Refinements as files instead of modules
Yes, the transition from monkey-patching to refinements is a major part of the intention.
But I also do not expect monkey-patching to ever completely go away. (Do you?) Monkey patching is more convenient, in that it can be done via o...
trans (Thomas Sawyer)
12:07 PM Feature #9704: Refinements as files instead of modules
So your key idea is sharing implementation between monkey-patching and refinements.
The motivation behind introducing refinements is discouraging monkey-patching. So it is not attractive for me to something that helps monkey-patching.
...
matz (Yukihiro Matsumoto)
08:47 AM Bug #9701 (Assigned): RDoc description for `String#<<` and `String#concat`
zzak (zzak _)
06:12 AM Bug #9701: RDoc description for `String#<<` and `String#concat`
True story, in string.c:
rb_define_method(rb_cString, "concat", rb_str_concat, 1);
rb_define_method(rb_cString, "<<", rb_str_concat, 1);
srawlins (Sam Rawlins)
06:08 AM Bug #9703: Inconsistent profile output
This is due to `profile.rb`'s `:specialized_instruction => false` compile option, on [line 5](https://github.com/ruby/ruby/blob/trunk/lib/profile.rb#L5). If you comment it out, none of the three cases will show any calls to `#==`. Specia... srawlins (Sam Rawlins)
05:11 AM Bug #9600: sysconf(_SC_GETGR_R_SIZE_MAX) is just a hint for getgrnam_r()
Wouldn't it be possible to backport this to 2.0.0 and 2.1, where the same issue resides? ReiOdaira (Rei Odaira)

04/05/2014

11:53 PM Bug #9699 (Closed): Cannot require .so file on Windows if the file path is unicode (Includes patch)
Applied in changeset r45523.
----------
dln.c: non-ascii path on Windows
* dln.c (dln_load): use wchar version to load a library in
non-ascii path on Windows. based on the patch by Bugra Barin
<bugrabarin AT hotmail.com> in [ruby-...
nobu (Nobuyoshi Nakada)
11:52 PM Revision a237db5c (git): dln.c: non-ascii path on Windows
* dln.c (dln_load): use wchar version to load a library in
non-ascii path on Windows. based on the patch by Bugra Barin
<bugrabarin AT hotmail.com> in [ruby-core:61845]. [Bug #9699]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trun...
nobu (Nobuyoshi Nakada)
11:51 PM Revision acfd09ed (git): * 2014-04-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:51 PM Revision ac4e60bf (git): win32.c: wchar conversion
* win32/win32.c (rb_w32_wstr_to_mbstr, rb_w32_mbstr_to_wstr): make
WCHAR/mb conversion functions public.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:38 PM Feature #9632: [PATCH 0/2] speedup IO#close with linked-list from ccan
normalperson@yhbt.net wrote:
> Updated 0001 patch with deduplicated license files:
> http://bogomips.org/ruby.git/patch?id=b5401cdc6f72

Any comment? My main concern is it's a large import of new code;
but it is also highly reu...
normalperson (Eric Wong)
04:33 PM Bug #9706 (Closed): Date#<=> should use #< method(fixed at r45520)
Date#<=> で #< メソッドを使って比較するようにする修正です。
trunk では r45520 で修正済みで、バックポート管理用にチケット化します。
nagachika (Tomoyuki Chikanaga)
04:05 PM Bug #9695 (Rejected): Substring search exhibit quadratic behaviour.
The algorithm is Sunday's quick search, which is a variation of BM, whose cost is O(m*n) as nobu said.
The benchmark happens the worst case for BM variants.
naruse (Yui NARUSE)
02:53 PM Bug #9697: rb_sys_fail(getaddrinfo) - errno == 0 crashes ruby
I found the errno is needed for rb_sys_fail function but it is cleared with the rb_freeaddrinfo function call.
Here is a patch
~~~
diff --git a/socket.c b/socket.c
index 67bfcb3..6b145ac 100644
--- a/socket.c
+++ b/socket.c
@...
phasis68 (Heesob Park)
02:21 PM Bug #9660: test/unit, minitest & bundler
Hello,
I take the liberty to link to a branch with a beginning of patch that updates the bundled version of Minitest to 5 (https://github.com/robin850/ruby/compare/minitest-five) since this is more or less related to the problem here....
robin850 (Robin Dupret)
10:53 AM Revision cce3aa75 (git): * ext/date/date_core.c (d_lite_cmp): should compare with #<.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba

04/04/2014

08:58 PM Bug #9705 (Closed): Installing ruby 2.1.1 fails while compiling (after: rvm install 2.1.1)
Possible relevance with cpu recognition (CPU is amd athlon 1200 32bit)
[[https://gist.github.com/ahibal/f41ee307085f35709704#file-make-log]]
last lines of make.log:
~~~
.
.
.
compiling addr2line.c
compiling dmyext.c
linkin...
ahibal (Ahilleas Balaktsis)
08:41 PM Feature #9704 (Assigned): Refinements as files instead of modules
If refinements are to remain file-scoped, then it would be more convenient if `using` worked at the file level, akin to `require`, rather than behave like a module `include`. For instance, instead of:
~~~
# foo.rb
module Foo
refi...
trans (Thomas Sawyer)
08:16 PM Feature #9678: New heredoc syntax
I have just realized this would cause a difficulty with pasting code into `irb`. This would not be the first, however, -- the following cannot be pasted into `irb` either:
class C
def f
1
end
end
...
alexeymuranov (Alexey Muranov)
07:39 PM Bug #9657: Segfault in bigdecimal/util.rb Float#to_d
Same thing happening here a few times a day while calling to_d. Same line: bigdecimal/util.rb:18. Rails 3.2.17 and 2.1.1p76. tiegz (Tieg Zaharia)
04:02 PM Bug #9703 (Closed): Inconsistent profile output
The output of the profile lib seems to be partially dependent on how it is required. For example,
~~~
ruby -rprofile -e '0==1'
~~~
shows one call to Fixnum#== as expected
~~~
ruby -e 'require "profile"; 0==1'
~~~
does not sho...
silverhammermba (Max Anselm)
03:31 PM Bug #9702 (Closed): r45488以降、SolarisStudioで ext/readline がコンパイルエラー(readline 6.2使用)
Applied in changeset r45518.
----------
`readline/extconf.rb`: `rl_hook_func_t`
* `ext/readline/extconf.rb` (`rl_hook_func_t`): check pointer type.
[ruby-dev:48089] [Bug #9702]
nobu (Nobuyoshi Nakada)
02:44 PM Bug #9702: r45488以降、SolarisStudioで ext/readline がコンパイルエラー(readline 6.2使用)
`have_type()` 内では`sizeof` を使って型のサイズをとれるかを元に型の有無を判定しているようですが、
調べたところ、`sizeof` を関数(関数ポインタではなく)に使うのは未定義動作のようです。
http://stackoverflow.com/questions/12259101/why-is-the-size-of-a-function-in-c-always-1-byte
ngoto (Naohisa Goto)
02:21 PM Bug #9702 (Closed): r45488以降、SolarisStudioで ext/readline がコンパイルエラー(readline 6.2使用)
r45488以降、Solarisにて、`ext/readline` が下記のようにコンパイルエラーになります。コンパイラは SolarisStudio 12.3 です。
readline 6.2 との組み合わせになります。
~~~
(前略)
cd ext/readline && exec make -w V=1 all
make[2]: Entering directory `/XXXXXXXXXX/ext/readline'
cc -I. -I../....
ngoto (Naohisa Goto)
03:31 PM Revision 685af965 (git): * 2014-04-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:31 PM Revision d2a8e285 (git): readline/extconf.rb: rl_hook_func_t
* ext/readline/extconf.rb (rl_hook_func_t): check pointer type.
[ruby-dev:48089] [Bug #9702]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:14 PM Bug #8358: TestSprintf#test_float test failure
@Zachary
This has been waiting review by Nobu/usa in a long time, why is assigned to you? are you going to revert the SSE2 block?
luislavena (Luis Lavena)
03:08 PM Bug #8358 (Feedback): TestSprintf#test_float test failure
zzak (zzak _)
11:45 AM Bug #1685: Some windows unicode path issues remain
Martin Dürst wrote:
> If you know of anything that's not yet in Ruby 2.2, please tell us, best
> ...
I've been setting up tests and running them through Ruby 2.2 I find some are fixed but there is still several issues related to file...
thomthom (Thomas Thomassen)
10:38 AM Bug #1685: Some windows unicode path issues remain
On 2014/04/03 23:07, thomas@thomthom.net wrote:
> Issue #1685 has been updated by Thomas Thomassen.

> In Ruby 2.0 there appear to still be several issues with Ruby and Unicode characters in filenames. Dir.entries fail, load and requ...
duerst (Martin Dürst)
11:19 AM Bug #9694: Bad regexp hangs ruby
Nikolay Markov wrote:
> Urabe, do you know how Perl does that? Also, i'll be grateful for the link to regexp sources in ruby
Don't know anything about perl's. Ruby's regexp engine is called Onigmo: https://github.com/k-takata/Onigmo
shyouhei (Shyouhei Urabe)
08:37 AM Revision c3699626 (git): signal.c: check stack overflow by SP
* signal.c (check_stack_overflow): raise SystemStackError if SP
register and fault address is in the same page, on x86 linux.
[EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:34 AM Revision e1825942 (git): eval_intern.h: VAR_INITIALIZED
* eval_intern.h (VAR_INITIALIZED): macro to suppress
maybe-uninitialized warnings by gcc 4.7 and 4.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:52 AM Bug #9701 (Closed): RDoc description for `String#<<` and `String#concat`
As far as I can see, `String#<<` is an alias of `String#concat`, but in the RDoc, there is no mentioning of the connection between them. `String#<<` should be simply described as an alias of `String#concat`. sawa (Tsuyoshi Sawada)
02:37 AM Revision 9dd01130 (git): configure.in: get rid of clang fatal error
* configure.in (ac_cv_func___builtin_setjmp): get rid of a bug in
clang 3.3 and 3.4, which __builtin_setjmp() causes fatal error
in backend, linker error, or segmentation fault.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4551...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom