SDL/src/video/cocoa
Sam Lantinga cef198c9cb Fixed bug 5524 - Pass NSString to NSLog()
Hiroyuki Iwatsuki

If you pass the C string directly to NSLog(), it will be garbled with Japanese and probably other language strings, or no log will be output at all.

NSLog("Hello, World!"); // => "Hello, World!"
NSLog("こんにちは、世界!"); // => No output...

Therefore, you need to convert the string to an NSString before passing it to NSLog().

NSString *str = [NSString stringWithUTF8String:"こんにちは、世界!"];
NSLog(@"%@", str); // => "こんにちは、世界!"

Thank you.
2021-02-10 10:22:18 -05:00
..
SDL_cocoaclipboard.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoaclipboard.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoaevents.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoaevents.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoakeyboard.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoakeyboard.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamessagebox.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamessagebox.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoametalview.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoametalview.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamodes.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamodes.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamouse.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamouse.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamousetap.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoamousetap.m Expose separate keyboard and mouse grab support 2021-02-10 10:22:17 -05:00
SDL_cocoaopengl.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoaopengl.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoaopengles.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoaopengles.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoashape.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoashape.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoavideo.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoavideo.m Fixed bug 5524 - Pass NSString to NSLog() 2021-02-10 10:22:18 -05:00
SDL_cocoavulkan.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoavulkan.m Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cocoawindow.h Rename SetWindowGrab() to SetWindowMouseGrab() 2021-02-10 10:22:16 -05:00
SDL_cocoawindow.m Expose separate keyboard and mouse grab support 2021-02-10 10:22:17 -05:00