diff --git a/backends/platform/sdl/macosx/macosx_wrapper.mm b/backends/platform/sdl/macosx/macosx_wrapper.mm index 95580b5f6ea..f79c6c9909b 100644 --- a/backends/platform/sdl/macosx/macosx_wrapper.mm +++ b/backends/platform/sdl/macosx/macosx_wrapper.mm @@ -108,5 +108,5 @@ Common::String getDesktopPathMacOSX() { NSString *path = [paths objectAtIndex:0]; if (path == nil) return Common::String(); - return Common::String([path cStringUsingEncoding:NSASCIIStringEncoding]); + return Common::String([path fileSystemRepresentation]); }