NSPredicate does not support UTF8 keypaths
| Originator: | jp | ||
| Number: | rdar://17735684 | Date Originated: | 18/07/2014 |
| Status: | Open | Resolved: | |
| Product: | iOS/OSX SDK, Foundation | Product Version: | All |
| Classification: | Other Bug | Reproducible: | Always |
NSPredicates cannot reference UTF8 keypaths: NSPredicate *frenchPredicate = [NSPredicate predicateWithFormat:@"étrange == 'ceci ne fonctionne pas'"]; // This throws an exception: 'Unable to parse the format string "..."' (displays the correct string). Example code hosted on GitHub: https://github.com/jpsim/applebugs
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!