Project

General

Profile

Bug #5652

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

Added by k_takata (Ken Takata) almost 9 years ago. Updated almost 9 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

Also available in: Atom PDF