Package: osdclock
Version: 0.5-11
Severity: wishlist

It will a great thing to take care of the locale definition of the system.
I wanted to display the date in french language and it was impossible even
with LC_ALL and LC_TIME correctly defined.

I made the modifications here under in order to take care of the locale.

-----

--- osd_clock.c.old     2006-02-13 22:59:40.000000000 +0100
+++ osd_clock.c 2006-02-13 23:00:20.000000000 +0100
@@ -26,6 +26,7 @@
 #include <unistd.h>
 #include <getopt.h>
 #include <time.h>
+#include <locale.h>

 static struct option long_options[] = {
   {"font",     1, NULL, 'f'},
@@ -54,6 +55,8 @@

 int main (int argc, char *argv[])
 {
+  setlocale(LC_ALL, "");
+
   char c;

   static const char *format;
                    
-----

Regards,

-- System Information:
Debian Release: testing/unstable
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-momo
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: 
LC_ALL set to fr_FR)

Versions of packages osdclock depends on:
ii  libc6                     2.3.5-13       GNU C Library: Shared libraries an
ii  libx11-6                  6.9.0.dfsg.1-4 X Window System protocol client li
ii  libxext6                  6.9.0.dfsg.1-4 X Window System miscellaneous exte
ii  libxosd2                  2.2.14-1.2     X On-Screen Display library - runt
ii  libxt6                    6.9.0.dfsg.1-4 X Toolkit Intrinsics
ii  xlibs                     6.9.0.dfsg.1-4 X Window System client libraries m

osdclock recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to