[#59462] [ruby-trunk - Bug #9342][Open] [PATCH] SizedQueue#clear does not notify waiting threads in Ruby 1.9.3 — "jsc (Justin Collins)" <redmine@...>

9 messages 2014/01/02

[#59466] [ruby-trunk - Bug #9343][Open] [PATCH] SizedQueue#max= wakes up waiters properly — "normalperson (Eric Wong)" <normalperson@...>

11 messages 2014/01/02

[#59498] [ruby-trunk - Bug #9352][Open] [BUG] rb_sys_fail_str(connect(2) for [fe80::1%lo0]:3000) - errno == 0 — "kain (Claudio Poli)" <claudio@...>

10 messages 2014/01/03

[#59516] [ruby-trunk - Bug #9356][Open] TCPSocket.new does not seem to handle INTR — "charliesome (Charlie Somerville)" <charliesome@...>

48 messages 2014/01/03

[#59538] [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

33 messages 2014/01/03
[#59541] Re: [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — Eric Wong <normalperson@...> 2014/01/04

Hi, I noticed a trivial typo in array.c, and it fails building struct.c

[#59582] Re: [ruby-trunk - Feature #9362][Assigned] Minimize cache misshit to gain optimal speed — SASADA Koichi <ko1@...> 2014/01/06

Intersting challenge.

[#59583] [ruby-trunk - Bug #9367][Open] REXML::XmlDecl doesn't use user specified quotes — "bearmini (Takashi Oguma)" <bear.mini@...>

12 messages 2014/01/06

[#59642] [ruby-trunk - Bug #9384][Open] Segfault in ruby 2.1.0p0 — "cbliard (Christophe Bliard)" <christophe.bliard@...>

11 messages 2014/01/08

[#59791] About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...>

A while ago I created a proof-of-concept that I intended to use in my

16 messages 2014/01/15
[#59794] Re: About unmarshallable DRb objects life-time — Eric Hodel <drbrain@...7.net> 2014/01/15

On 15 Jan 2014, at 11:58, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> =

[#59808] Re: About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...> 2014/01/16

Em 15-01-2014 19:42, Eric Hodel escreveu:

[#59810] Re: About unmarshallable DRb objects life-time — Eric Hodel <drbrain@...7.net> 2014/01/16

On 16 Jan 2014, at 02:15, Rodrigo Rosenfeld Rosas <rr.rosas@gmail.com> =

[#59826] Re: About unmarshallable DRb objects life-time — Rodrigo Rosenfeld Rosas <rr.rosas@...> 2014/01/17

Em 16-01-2014 19:43, Eric Hodel escreveu:

[ruby-core:60194] [ruby-trunk - Bug #9273] parse_resolv_conf fails with unicode comments in /etc/resolvconf.c

From: usa@...
Date: 2014-01-29 04:31:14 UTC
List: ruby-core #60194
Issue #9273 has been updated by Usaku NAKAMURA.

Backport changed from 1.9.3: REQUIRED, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3:=
 DONE, 2.0.0: DONE, 2.1: REQUIRED

backported into ruby_1_9_3 at r44739.

----------------------------------------
Bug #9273: parse_resolv_conf fails with unicode comments in /etc/resolvconf=
.c
https://bugs.ruby-lang.org/issues/9273#change-44678

* Author: Vit Ondruch
* Status: Closed
* Priority: Normal
* Assignee:=20
* Category:=20
* Target version:=20
* ruby -v: ruby -v: ruby 2.1.0dev (2013-12-20 trunk 44303) [x86_64-linux]
* Backport: 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
=3Dbegin
This is content of my resolve.conf:

 $ cat /etc/resolv.conf=20
 # Generated by NetworkManager
 domain redhat.com
 search redhat.com
 nameserver 10.38.5.26
 nameserver 10.35.255.14
 nameserver 213.46.172.36
 # POZN=C3=81MKA: p=C5=99eklada=C4=8D adres z libc nem=C5=AF=C5=BEe podporo=
vat v=C3=ADce ne=C5=BE 3 jmenn=C3=A9 servery.
 # Jmenn=C3=A9 servery uveden=C3=A9 v n=C3=A1sleduj=C3=ADc=C3=ADm seznamu n=
elze rozpoznat.
 nameserver 213.46.172.37
 nameserver 192.168.0.1
=20
As you can see, NetworkManager inserts there some localized comment. Later,=
 when I run the Ruby's test suite with LANG=3DC (this is default for Fedora=
 build system), I observer error:

   1) Error:
 TestGemRemoteFetcher#test_download_to_cache:
 ArgumentError: invalid byte sequence in US-ASCII
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:926:in `sub!'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:926:in `block (2=
 levels) in parse_resolv_conf'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:925:in `each'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:925:in `block in=
 parse_resolv_conf'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:924:in `open'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:924:in `parse_re=
solv_conf'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:956:in `default_=
config_hash'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:977:in `block in=
 lazy_initialize'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:970:in `synchron=
ize'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:970:in `lazy_ini=
tialize'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:358:in `block in=
 lazy_initialize'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:356:in `synchron=
ize'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:356:in `lazy_ini=
tialize'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:516:in `fetch_re=
source'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:510:in `each_res=
ource'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/resolv.rb:491:in `getresou=
rce'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/rubygems/remote_fetcher.rb=
:89:in `api_endpoint'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/rubygems/source.rb:42:in `=
api_uri'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/rubygems/source.rb:126:in =
`fetch_spec'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/rubygems/spec_fetcher.rb:1=
71:in `block in spec_for_dependency'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/rubygems/spec_fetcher.rb:1=
69:in `each'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/rubygems/spec_fetcher.rb:1=
69:in `spec_for_dependency'
     /builddir/build/BUILD/ruby-2.1.0-r44303/lib/rubygems/remote_fetcher.rb=
:106:in `download_to_cache'
     /builddir/build/BUILD/ruby-2.1.0-r44303/test/rubygems/test_gem_remote_=
fetcher.rb:400:in `test_download_to_cache'

The attached patch ignores such error and should be sufficient to fix this =
issue IMO. Not sure if I should not contact NM developers, but anybody else=
 might insert there some localized strings as well, so Ruby should be proba=
bly more robust in this case.
=3Dend


---Files--------------------------------
0001-Ignore-encoding-issues.patch (1.08 KB)
0001-Ignore-encoding-issues.patch (971 Bytes)


--=20
http://bugs.ruby-lang.org/

In This Thread