testmessage should test Unicode strings.
authorRyan C. Gordon
Fri, 07 Dec 2012 19:59:30 -0500
changeset 672237283d4416e0
parent 6721 53b71f45a53a
child 6723 7c464a9ecf48
testmessage should test Unicode strings.
test/testmessage.c
     1.1 --- a/test/testmessage.c	Tue Dec 04 19:21:10 2012 -0800
     1.2 +++ b/test/testmessage.c	Fri Dec 07 19:59:30 2012 -0500
     1.3 @@ -49,6 +49,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 +                "UTF-8 Simple MessageBox",
    1.10 +                "Unicode text: '牛肉西蘭花' ...",
    1.11 +                NULL);
    1.12 +    if (success == -1) {
    1.13 +        printf("Error Presenting MessageBox: %s\n", SDL_GetError());
    1.14 +        quit(1);
    1.15 +    }
    1.16 +
    1.17      {
    1.18          const SDL_MessageBoxButtonData buttons[] = {
    1.19              {