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