X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fgltext.c;h=0e83ec34af50c1237832afa5692412a6bbcef68c;hp=a537c374299fe7f09e6e98fb1dfa0705bdfb67e1;hb=bc7b7a8eb122206d239ec0e693676bcce31be1aa;hpb=ffd8c0873576a9e3065696a624dce6b766b77062 diff --git a/hacks/glx/gltext.c b/hacks/glx/gltext.c index a537c374..0e83ec34 100644 --- a/hacks/glx/gltext.c +++ b/hacks/glx/gltext.c @@ -54,6 +54,10 @@ extern XtAppContext app; #include #include +#ifdef HAVE_LOCALE_H +# include +#endif /* HAVE_LOCALE_H */ + #ifdef USE_GL /* whole file */ #ifdef HAVE_UNAME @@ -281,6 +285,10 @@ init_text (ModeInfo *mi) text_configuration *tp; int i; +# ifdef HAVE_SETLOCALE + setlocale (LC_TIME, ""); /* for strftime() calls */ +# endif + if (!tps) { tps = (text_configuration *) calloc (MI_NUM_SCREENS(mi), sizeof (text_configuration));