Bug#259423: xclock does not use locales with strftime
Well...
As nobody seems to want to fix that, I did it myself :)
It was rather simple enough to be made in a few minutes.
Just 2 more lines in the code...
Here is the patch :
--- xclock.c.orig Thu Nov 4 22:16:36 2004
+++ xclock.c Thu Nov 4 21:59:28 2004
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <locale.h>
#include <X11/Xatom.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
@@ -145,6 +146,7 @@
Pixmap icon_pixmap = None;
XtAppContext app_con;
+ setlocale(LC_TIME, "");
toplevel = XtOpenApplication(&app_con, "XClock",
options, XtNumber(options), &argc, argv, NULL,
sessionShellWidgetClass, NULL, ZERO);
Thomas
--
/* After several hours of tedious analysis, the following hash
* function won. Do not mess with it... -DaveM
*/
2.2.16 /usr/src/linux/fs/buffer.c
Reply to: