LIKE predicate can not handle FULLWIDTH LEFT PARENTHESIS

Originator:an00na
Number:rdar://14982316 Date Originated:12-Sep-2013 10:05 PM
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 10 beta 1
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
The problematic character is:
(
FULLWIDTH LEFT PARENTHESIS
Unicode: U+FF08, UTF-8: EF BC 88

[NSPredicate predicateWithFormat:@"text LIKE %@", @"*(你*"] crashes with following error:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Can't do regex matching, reason: Can't open pattern U_REGEX_MISMATCHED_PAREN (string abc, pattern *(你*, case 0, canon 0)'

I think the cause is full-width parenthesis are incorrectly treated as half-width parenthesis.

Steps to Reproduce:
1. Launch sample app.
2. Tap + button.
3. Read console logs.

Code: http://cl.ly/1P1h2C2o3m0a

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!