[ruby-core:83789] [Ruby trunk Bug#14110] Ruby 2.5.0.dev (from trunk) still doesn't support zero unicode codepoints

From: ibylich@...
Date: 2017-11-15 19:37:46 UTC
List: ruby-core #83789
Issue #14110 has been updated by ibylich (Ilya Bylich).


ibylich (Ilya Bylich) wrote:
> Hi,
> 
> This commit - https://github.com/ruby/ruby/commit/7e8b910 - according to its commit message should allow zero unicode codepoints, i.e.
> 
> ~~~
> $ cat test.rb
> p "\u{}"
> 
> $ ./ruby -v
> ruby 2.5.0dev (2017-11-14 trunk 60757) [x86_64-darwin17]
> 
> $ ./ruby test.rb
> test.rb:1: invalid Unicode escape
> p "\u{}"
>       ^
> ~~~
> 
> Shouldn't it be supported now? Because the test that was removed (that zero codepoints are not supported) is still passing.
> Thanks.

Sorry, I've missed that it has been already fixed in https://github.com/ruby/ruby/commit/50702d16ab5862413351520b65da820194dbf8d7.
Is it going to be backported to 2.4?

----------------------------------------
Bug #14110: Ruby 2.5.0.dev (from trunk) still doesn't support zero unicode codepoints
https://bugs.ruby-lang.org/issues/14110#change-67826

* Author: ibylich (Ilya Bylich)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-11-14 trunk 60757) [x86_64-darwin17]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Hi,

This commit - https://github.com/ruby/ruby/commit/7e8b910 - according to its commit message should allow zero unicode codepoints, i.e.

~~~
$ cat test.rb
p "\u{}"

$ ./ruby -v
ruby 2.5.0dev (2017-11-14 trunk 60757) [x86_64-darwin17]

$ ./ruby test.rb
test.rb:1: invalid Unicode escape
p "\u{}"
      ^
~~~

Shouldn't it be supported now? Because the test that was removed (that zero codepoints are not supported) is still passing.
Thanks.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next