NSLocale doesn't provide a display name for country codes

Originator:peter
Number:rdar://17399445 Date Originated:20-June-2014
Status:Closed Resolved:
Product:iOS SDK Product Version:iOS 8 beta 2
Classification: Reproducible:Always
 
Summary:
NSLocale is unable to provide a display name for any country code.

Steps to Reproduce:
1. Attempt to get a display name for a country code:

NSString *countryID = [[NSLocale currentLocale] objectForKey:NSLocaleCountryCode];
    NSString *displayName = [[NSLocale currentLocale] displayNameForKey:NSLocaleCountryCode value:countryID];

Expected Results:
`displayName` should not be nil (should be the name of the country given, in the current locale's language).

Actual Results:
`displayName` is nil

Version:
iOS 8 beta 2

Notes:


Configuration:
iOS 8 Simulator

Comments

Resolved in iOS 8 beta 3.


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!