Skip to content

Commit

Permalink
Fixed the file stuff in main.m.
Browse files Browse the repository at this point in the history
Use stringByAppendingPathComponent instead of stringByAppendingString.
  • Loading branch information
MaddTheSane authored and C.W. Betts committed Aug 29, 2015
1 parent 5fd66cc commit b3394c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ int main(int argc, char **argv)

@autoreleasepool {

NSString* resources = [[[NSBundle mainBundle] resourcePath] stringByAppendingString:@"/locale"];
NSString* resources = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"locale"];
static char path_locale[1024];
strcpy(path_locale, [resources cStringUsingEncoding:NSASCIIStringEncoding]);
strcpy(path_locale, [resources fileSystemRepresentation]);
setenv("PATH_LOCALE", path_locale, 1);
setlocale(LC_CTYPE, "en_US.UTF-8");

Expand Down

0 comments on commit b3394c2

Please sign in to comment.