Xcode Warning Fix-It Inserts characters at the wrong index when Unicode characters are present in the line

Originator:paul
Number:rdar://16418601 Date Originated:3/25/14
Status:Closed Resolved:
Product:Xcode Product Version:Version 5.1 (5B130a)
Classification:UI/Usability Reproducible:Always
 
Closed as a duplicate of rdar://8259324.

Summary:
Consider the string @"TEXT:Ω%iΩ%iΩ%iΩ%0.2fΩ%0.2fΩ%@", where NSIntegers are being inserted at those %i tokens. Xcode will give an error, with a default "Fix-it", that inserts %li and (long). Currently Xcode inserts these characters at the wrong position.

Steps to Reproduce:
See attached sample project, and attempt to auto-fix the warning.

Expected Results:
Xcode inserts the Fix-it characters at the correct position.

Actual Results:
Xcode inserts the Fix-it characters at the wrong position.

Comments

I added this note:

Possibly related to rdar://16418631


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!