testmessage should test Unicode strings.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 07 Dec 2012 19:59:30 -0500
changeset 6722 37283d4416e0
parent 6721 53b71f45a53a
child 6723 7c464a9ecf48
testmessage should test Unicode strings.
test/testmessage.c
--- a/test/testmessage.c	Tue Dec 04 19:21:10 2012 -0800
+++ b/test/testmessage.c	Fri Dec 07 19:59:30 2012 -0500
@@ -49,6 +49,16 @@
         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[] = {
             {