[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73737] Re: [Ruby trunk Feature#12034] RegExp does not respect file encoding directive
From:
Eric Wong <normalperson@...>
Date:
2016-02-07 22:36:25 UTC
List:
ruby-core #73737
nobu@ruby-lang.org wrote:
> Eric Wong wrote:
> > How about fall back to ASCII-8BIT if we detect broken code range?
>
> It may be desirable or undesirable, as it can cause unexpected failure later.
Current behavior causes failures now.
> > ```diff
> > + link = "\xde\xad\xbe\xef".b
> > + File.symlink(link, 'foo')
> > + str = File.readlink('foo')
> > + assert_predicate str, :valid_encoding?, bug12034
> > + assert_equal link, str, bug12034
>
> Anyway, "\xde\xad\xbe\xef" is a valid string in some encodings, e.g., EUC-JP, ISO-8859-1, and so on.
> Especially in ISO-8859 encodings, any bytes are valid.
I think that is fine as long as the strings are valid.
Returning invalid strings is the main problem, I think;
and we should stop doing that. Dir.entries and similar methods
have the same problem.
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>