Bug #5652

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

Added by Ken Takata over 2 years ago. Updated over 2 years ago.

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

Description

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

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

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

fix_property_name_error.patch Magnifier (444 Bytes) Ken Takata, 11/20/2011 01:04 PM

Associated revisions

Revision 33797
Added by Yui NARUSE over 2 years ago

  • enc/unicode.c (PROPERTYNAMEMAX_SIZE): +1. reported by Ken Takata. [Bug #5652]

History

#1 Updated by Yui NARUSE over 2 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 (PROPERTYNAMEMAX_SIZE): +1. reported by Ken Takata. [Bug #5652]

Also available in: Atom PDF