Commit 52df7f5b8fa66b8383764026865b3bfbde41169a

Ryan C. Gordon 2015-05-31T23:53:10

testmessage: Try Unicode chars in the title, too.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/test/testmessage.c b/test/testmessage.c
index 9cb8cb8..494bfdd 100644
--- a/test/testmessage.c
+++ b/test/testmessage.c
@@ -126,6 +126,16 @@ main(int argc, char *argv[])
         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.