Project

General

Profile

Actions

Bug #5652

closed

/\p{Other_Default_Ignorable_Code_Point}/ causes invalid character property name error

Added by k_takata (Ken Takata) about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3p0 (2011-10-30) [i386-mswin32_100]
Backport:
[ruby-dev:44894]

Description

Unicodeプロパティ名の中で最大長の \p{Other_Default_Ignorable_Code_Point} がエラーになります。

irb --encoding=UTF-8
irb(main):001:0> /\p{Other_Default_Ignorable_Code_Point}/ =~ 'a'
SyntaxError: (irb):1: invalid character property name {Other_Default_Ignorable_Cod...}: /\p{Other_Default_Ignorable_Code_Point}/
from C:/Program Files (x86)/Ruby-1.9.3-p0/bin/irb.bat:19:in `'

PROPERTY_NAME_MAX_SIZEを +1 する必要があると思います。


Files

fix_property_name_error.patch (444 Bytes) fix_property_name_error.patch k_takata (Ken Takata), 11/20/2011 01:04 PM
Actions #1

Updated by naruse (Yui NARUSE) about 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r33797.
Ken, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


Actions

Also available in: Atom PDF

Like0
Like0