From 2fa13f3ded3449d0a4ddd0357ca42d6b075d07a8 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Sat, 12 Jun 2010 15:41:41 +0000 Subject: - Update the nib localisation postprocessor to output strings files in the original format they were read using - Convert the .strings files to UTF16 --- Source/xibLocalizationPostprocessor.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/xibLocalizationPostprocessor.m b/Source/xibLocalizationPostprocessor.m index 591e92b7..a6379aa7 100644 --- a/Source/xibLocalizationPostprocessor.m +++ b/Source/xibLocalizationPostprocessor.m @@ -54,7 +54,7 @@ int main(int argc, const char *argv[]) NSLog(@"Warning: skipped garbage input line %d, contents: \"%@\"", lineCount, line); } - if (outputStrings.length && ![outputStrings writeToFile:[NSString stringWithUTF8String:argv[2]] atomically:NO encoding:NSUTF8StringEncoding error:&error]) { + if (outputStrings.length && ![outputStrings writeToFile:[NSString stringWithUTF8String:argv[2]] atomically:NO encoding:usedEncoding error:&error]) { fprintf(stderr, "Error writing %s: %s\n", argv[2], error.localizedDescription.UTF8String); exit (-1); } -- cgit v1.2.3