Wrong description of String Encoding Detection option dictionary keys in Foundation Release Notes for OS X v10.10

Originator:klausa
Number:rdar://17357544 Date Originated:18-Jun-2014 11:47 AM
Status:Open Resolved:
Product:Documentaion Product Version:
Classification: Reproducible:
 
The text explains keys and values that 
+ (NSStringEncoding)stringEncodingForData:(NSData *)data
                                         encodingOptions:(NSDictionary *)opts
                                           convertedString:(NSString **)string
                                   usedLossyConversion:(BOOL *)usedLossyConversion
takes, but I believe the keys and their explanations are mismatched.

Steps to Reproduce:
1. Go to https://developer.apple.com/librarY/prerelease/mac/releasenotes/Foundation/RN-Foundation/index.html#10_10StringEncodingDetection
2. Look under "The possible key for the option dictionary and their values are:"

Expected Results:
1. NSStringEncodingDetectionFromWindowsKey would have following explanation:  "Value: a boolean option indicating whether the data is generated by Windows"
3.  NSStringEncodingDetectionLossySubstitutionKey would have following explanation: "Value: an option that gives a specific string to substitute for mystery bytes"
2.  NSStringEncodingDetectionLikelyLanguageKey would have following explanation: "Value: the current user’s language"

Actual Results:
1. NSStringEncodingDetectionFromWindowsKey has following explanation: "Value: an option that gives a specific string to substitute for mystery bytes"
2. NSStringEncodingDetectionLossySubstitutionKey has following explanation: "Value: the current user’s language"
3. NSStringEncodingDetectionLikelyLanguageKey has following explanation: "Value: a boolean option indicating whether the data is generated by Windows"

Version:
Foundation Release Notes for OS X v10.10

https://developer.apple.com/librarY/prerelease/mac/releasenotes/Foundation/RN-Foundation/index.html#10_10StringEncodingDetection

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!