X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=driver%2Ftest-passwd.c;h=65615dd581da47c468921605dfcd3d73675b40d2;hp=fe0dedb3b52013628f027809cafd0414f9022e2c;hb=5f9c47ca98dd43d8f59b7c27d3fde6edfde4fe21;hpb=50be9bb40dc60130c99ffa568e6677779904ff70 diff --git a/driver/test-passwd.c b/driver/test-passwd.c index fe0dedb3..65615dd5 100644 --- a/driver/test-passwd.c +++ b/driver/test-passwd.c @@ -1,4 +1,4 @@ -/* xscreensaver, Copyright (c) 1998-2008 Jamie Zawinski +/* xscreensaver, Copyright (c) 1998-2011 Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -27,6 +27,7 @@ #include #include #include +#include #include "xscreensaver.h" #include "resources.h" @@ -41,7 +42,7 @@ saver_info *global_si_kludge; FILE *real_stderr, *real_stdout; -void monitor_power_on (saver_info *si) {} +void monitor_power_on (saver_info *si, Bool on_p) {} Bool monitor_powered_on_p (saver_info *si) { return True; } void initialize_screensaver_window (saver_info *si) {} void raise_window (saver_info *si, Bool i, Bool b, Bool d) {} @@ -135,6 +136,8 @@ static char *fallback[] = { 0 }; +extern Bool debug_passwd_window_p; /* lock.c kludge */ + int main (int argc, char **argv) { @@ -199,6 +202,11 @@ main (int argc, char **argv) progclass = "XScreenSaver"; + if (!setlocale(LC_ALL,"")) + fprintf (stderr, "%s: warning: could not set default locale\n", + progname); + + if (which != TTY) { toplevel_shell = XtAppInitialize (&si->app, progclass, 0, 0, @@ -243,6 +251,7 @@ main (int argc, char **argv) si->unlock_cb = gui_auth_conv; si->auth_finished_cb = auth_finished_cb; + debug_passwd_window_p = True; xss_authenticate(si, True); if (si->unlock_state == ul_success)