The [NSString stringWithFormat:@"%c", ...] behaviour is different from iOS 6

Originator:JoseJoaoJunior.JJ
Number:rdar://14819990 Date Originated:23/08/1013
Status:Open Resolved:
Product:iOS SDK Product Version:IOS 7 beta 6
Classification:Crash/Hang/Data Loss Reproducible:Always
 
23-Aug-2013 02:33 PM Jose Joao Junior:
Summary:
The [NSString stringWithFormat:@"%c", ...] behaviour in iOS 7 beta 6 is different from iOS 6.
I created a project which decodes the bullet representation (0xA5) into a NSString object using [NSString stringWithFormat:@"%c", 0xA5] and compares the result with @"•".

The assertion doesn't fail when running the project on iOS 6 but. It fails on iOS 7 beta 6 though, because the method '[NSString stringWithFormat:]' returns @"¥" instead of @"•".

Steps to Reproduce:
Log the result of "[NSString stringWithFormat:@"%c", 0xA5]" on IOS 6, notice that it is @"•".
The same code in the IOS 7 beta 6 returns @"¥.

Expected Results:
The result of '[NSString stringWithFormat:@"%c", 0xA5]' on iOS 7 beta 6 should be @"•".

Actual Results:
The result of '[NSString stringWithFormat:@"%c", 0xA5]' on iOS 7 beta 6 is @"¥".

Regression:

Notes:

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!