From 90f4cb168939b4ae191ad30736ead438a75876ba Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 7 Dec 2012 19:59:30 -0500 Subject: [PATCH] testmessage should test Unicode strings. --- test/testmessage.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/testmessage.c b/test/testmessage.c index 01db7475e..a4699c713 100644 --- a/test/testmessage.c +++ b/test/testmessage.c @@ -49,6 +49,16 @@ main(int argc, char *argv[]) quit(1); } + /* Google says this is Traditional Chinese for "beef with broccoli" */ + success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, + "UTF-8 Simple MessageBox", + "Unicode text: '牛肉西蘭花' ...", + NULL); + if (success == -1) { + printf("Error Presenting MessageBox: %s\n", SDL_GetError()); + quit(1); + } + { const SDL_MessageBoxButtonData buttons[] = { {