SDL2/src/video
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
..
android Updated copyright for 2021 2021-01-02 10:25:38 -08:00
arm
cocoa Fixed bug 5524 - Pass NSString to NSLog() 2021-02-10 10:22:18 -05:00
directfb Expose separate keyboard and mouse grab support 2021-02-10 10:22:17 -05:00
dummy Updated copyright for 2021 2021-01-02 10:25:38 -08:00
emscripten Rename SetWindowGrab() to SetWindowMouseGrab() 2021-02-10 10:22:16 -05:00
haiku Rename SetWindowGrab() to SetWindowMouseGrab() 2021-02-10 10:22:16 -05:00
khronos
kmsdrm [KMS/DRM] Merge patch for bug 5522#: Implement KMSDRM_GetWindowWMInfo(). 2021-02-10 10:22:18 -05:00
nacl Updated copyright for 2021 2021-01-02 10:25:38 -08:00
offscreen Updated copyright for 2021 2021-01-02 10:25:38 -08:00
os2 Expose separate keyboard and mouse grab support 2021-02-10 10:22:17 -05:00
pandora Removed non-functional window grab implementations 2021-02-10 10:22:16 -05:00
psp Removed non-functional window grab implementations 2021-02-10 10:22:16 -05:00
qnx
raspberry Removed non-functional window grab implementations 2021-02-10 10:22:16 -05:00
uikit Fixed bug 5524 - Pass NSString to NSLog() 2021-02-10 10:22:18 -05:00
vivante Updated copyright for 2021 2021-01-02 10:25:38 -08:00
wayland free 'outputs' in 'Wayland_DestroyWindow' 2021-02-10 10:22:18 -05:00
windows Properly handle keys already down when the hook is installed 2021-02-10 10:22:18 -05:00
winrt Updated copyright for 2021 2021-01-02 10:25:38 -08:00
x11 X11: Ungrab the keyboard when the mouse leaves the window 2021-02-10 10:22:17 -05:00
yuv2rgb
SDL_blit.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_0.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_1.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_A.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_auto.c Fixed bug 5510 - simplify the scaling functions blit auto (generated file) 2021-02-10 10:22:17 -05:00
SDL_blit_auto.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_copy.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_copy.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_N.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_blit_slow.c Fixed bug 5510 - simplify the scaling functions 2021-02-10 10:22:17 -05:00
SDL_blit_slow.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_bmp.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_clipboard.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_egl.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_egl_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_fillrect.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_pixels.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_pixels_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_rect.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_rect_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_RLEaccel.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_RLEaccel_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_shape.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_shape_internals.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_stretch.c Revert checks on destination scaling size (see bug #5510) 2021-02-10 10:22:18 -05:00
SDL_surface.c Revert checks on destination scaling size (see bug #5510) 2021-02-10 10:22:18 -05:00
SDL_sysvideo.h Rename SetWindowGrab() to SetWindowMouseGrab() 2021-02-10 10:22:16 -05:00
SDL_video.c Expose separate keyboard and mouse grab support 2021-02-10 10:22:17 -05:00
SDL_vulkan_internal.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_vulkan_utils.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_yuv.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_yuv_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
sdlgenblit.pl Fixed bug 5510 - simplify the scaling functions 2021-02-10 10:22:17 -05:00