Actions
Bug #5652
closed/\p{Other_Default_Ignorable_Code_Point}/ causes invalid character property name error
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
Updated by naruse (Yui NARUSE) almost 13 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.
- enc/unicode.c (PROPERTY_NAME_MAX_SIZE): +1.
reported by Ken Takata. [ruby-dev:44894][Bug #5652]
Actions
Like0
Like0