testmessage should test Unicode strings.

This commit is contained in:
Ryan C. Gordon 2012-12-07 19:59:30 -05:00
parent 23ed51ea1b
commit 60a837b5aa

View file

@ -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[] = {
{