X11: Reenabled setlocale() and fork() for message boxes.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 23 Mar 2015 19:54:33 -0400
changeset 94233df83030dab9
parent 9422 286c854c1d5b
child 9424 a3344156e514
X11: Reenabled setlocale() and fork() for message boxes.

Fixes Bugzilla #1658.
src/video/x11/SDL_x11messagebox.c
     1.1 --- a/src/video/x11/SDL_x11messagebox.c	Mon Mar 23 19:47:08 2015 -0400
     1.2 +++ b/src/video/x11/SDL_x11messagebox.c	Mon Mar 23 19:54:33 2015 -0400
     1.3 @@ -31,8 +31,8 @@
     1.4  #include <locale.h>
     1.5  
     1.6  
     1.7 -#define SDL_FORK_MESSAGEBOX 0
     1.8 -#define SDL_SET_LOCALE      0
     1.9 +#define SDL_FORK_MESSAGEBOX 1
    1.10 +#define SDL_SET_LOCALE      1
    1.11  
    1.12  #if SDL_FORK_MESSAGEBOX
    1.13  #include <sys/types.h>
    1.14 @@ -718,9 +718,6 @@
    1.15      int fds[2];
    1.16      int status = 0;
    1.17  
    1.18 -    /* Need to flush here in case someone has turned grab off and it hasn't gone through yet, etc. */
    1.19 -    X11_XFlush(data->display);
    1.20 -
    1.21      if (pipe(fds) == -1) {
    1.22          return X11_ShowMessageBoxImpl(messageboxdata, buttonid); /* oh well. */
    1.23      }