testmessage: Try Unicode chars in the title, too.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 31 May 2015 23:53:10 -0400
changeset 9697 152b686b9a75
parent 9696 a7e9b75ec1c9
child 9698 bf0257e323d2
testmessage: Try Unicode chars in the title, too.
test/testmessage.c
--- a/test/testmessage.c	Sun May 31 22:59:59 2015 -0400
+++ b/test/testmessage.c	Sun May 31 23:53:10 2015 -0400
@@ -126,6 +126,16 @@
         quit(1);
     }
 
+    /* Google says this is Traditional Chinese for "beef with broccoli" */
+    success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
+                "牛肉西蘭花",
+                "Unicode text in the title.",
+                NULL);
+    if (success == -1) {
+        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Error Presenting MessageBox: %s\n", SDL_GetError());
+        quit(1);
+    }
+
     button_messagebox(NULL);
 
     /* Test showing a message box from a background thread.