[#15707] Schedule for the 1.8.7 release — "Akinori MUSHA" <knu@...>

Hi, developers,

21 messages 2008/03/01

[#15740] Copy-on-write friendly garbage collector — Hongli Lai <hongli@...99.net>

Hi.

31 messages 2008/03/03
[#15742] Re: Copy-on-write friendly garbage collector — Yukihiro Matsumoto <matz@...> 2008/03/03

Hi,

[#15829] Re: Copy-on-write friendly garbage collector — Daniel DeLorme <dan-ml@...42.com> 2008/03/08

Yukihiro Matsumoto wrote:

[#15756] embedding Ruby 1.9.0 inside pthread — "Suraj Kurapati" <sunaku@...>

Hello,

18 messages 2008/03/03
[#15759] Re: embedding Ruby 1.9.0 inside pthread — Nobuyoshi Nakada <nobu@...> 2008/03/04

Hi,

[#15760] Re: embedding Ruby 1.9.0 inside pthread — Yukihiro Matsumoto <matz@...> 2008/03/04

Hi,

[#15762] Re: embedding Ruby 1.9.0 inside pthread — "Suraj N. Kurapati" <sunaku@...> 2008/03/04

Yukihiro Matsumoto wrote:

[#15783] Adding startup and shutdown to Test::Unit — Daniel Berger <Daniel.Berger@...>

Hi all,

15 messages 2008/03/04

[#15835] TimeoutError in core, timeouts for ConditionVariable#wait — MenTaLguY <mental@...>

I've been reworking JRuby's stdlib to improve performance and fix

10 messages 2008/03/09

[#15990] Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...>

Hi,

35 messages 2008/03/23
[#15991] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/23

[#15993] Re: Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...> 2008/03/23

Hi Dave,

[#15997] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/23

[#16024] Re: Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...> 2008/03/26

Hi Dave,

[#16025] Re: Recent changes in Range#step behavior — Yukihiro Matsumoto <matz@...> 2008/03/26

Hi,

[#16026] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16027] Re: Recent changes in Range#step behavior — Yukihiro Matsumoto <matz@...> 2008/03/26

Hi,

[#16029] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16030] Re: Recent changes in Range#step behavior — Yukihiro Matsumoto <matz@...> 2008/03/26

Hi,

[#16031] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16032] Re: Recent changes in Range#step behavior — "Vladimir Sizikov" <vsizikov@...> 2008/03/26

On Wed, Mar 26, 2008 at 7:01 PM, Dave Thomas <dave@pragprog.com> wrote:

[#16033] Re: Recent changes in Range#step behavior — Dave Thomas <dave@...> 2008/03/26

[#16041] Re: Recent changes in Range#step behavior — David Flanagan <david@...> 2008/03/26

Dave Thomas wrote:

update URI to reflect RFC 3986 ?

From: Jeremy Hinegardner <jeremy@...>
Date: 2008-03-19 20:03:39 UTC
List: ruby-core #15962
Hi all,

I've been using URI found one issue with URI that is similar to
http://rubyforge.org/tracker/?group_id=426&atid=1698&func=detail&aid=13504 .

URL's with underscores in the hostname are considered invalid, but are actually
real and resolvable.

   % ruby -v && irb
   ruby 1.8.6 (2007-09-24 patchlevel 111) [i686-darwin9.2.0]
   >> require 'uri'
   >> URI.parse("http://mis_nomer.blogspot.com/")
   URI::InvalidURIError: the scheme http does not accept registry part: mis_nomer.blogspot.com (or bad hostname?)
          from /opt/local/lib/ruby/1.8/uri/generic.rb:195:in `initialize'
          from /opt/local/lib/ruby/1.8/uri/http.rb:78:in `initialize'
          from /opt/local/lib/ruby/1.8/uri/common.rb:488:in `new'
          from /opt/local/lib/ruby/1.8/uri/common.rb:488:in `parse'
          from (irb):2

The problem stems from RFC 2396 saying hostname is:

  hostname      = *( domainlabel "." ) toplabel [ "." ]
  domainlabel   = alphanum | alphanum *( alphanum | "-" ) alphanum
  toplabel      = alpha | alpha *( alphanum | "-" ) alphanum

But now in RFC 3986, which supercedes 2396, a host is:

  host          = IP-literal / IPv4address / reg-name
  reg-name      = *( unreserved / pct-encoded / sub-delims )
  unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"

This doeas appear to conflict with the 'Preferred name syntax' from RFC 1035
which says only a-z, A-Z, 0-9 and '-' should be in domain names.  I was attempting
to find the RFC that spoke about underscores and other possible items but had no
luck.

Thoughts?

enjoy

-jeremy

--
========================================================================
 Jeremy Hinegardner                              jeremy@hinegardner.org


In This Thread

Prev Next