Package: logwatch
Version: 6.1.2-1
Severity: wishlist

Hi, the zz-fortune module currently doesn't support non C locale,
it can only display C fortunes. I'm using fr_FR.UTF-8 and get :

 fortune: /usr/share/games/fortunes: No fortune files in directory.
 fortune:/usr/share/games/fortunes not a fortune file or directory
 No fortunes found

because i have only installed fortunes-fr. It would be nice to have
a option to configure LC_ALL. As i workaround, i have modified 

/usr/share/logwatch/scripts/services/zz-fortune

to

--- zz-fortune  2005-11-26 19:34:06.987000000 +0100
+++ zz-fortune.new      2005-11-26 19:33:35.193000000 +0100
@@ -6,7 +6,7 @@

 if (($ENV{'PRINTING'} eq "y" ) && (-e "/usr/games/fortune")) {
       #print "\n\n------------------ Fortune --------------------\n\n";
-      system("/usr/games/fortune");
+      system("LC_ALL=fr_FR.UTF-8 /usr/games/fortune");
       print "\n";
 }

so i can get my fortune.
Thanks.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)

Versions of packages logwatch depends on:
ii  mailx            1:8.1.2-0.20050715cvs-1 A simple mail user agent
ii  perl             5.8.7-8                 Larry Wall's Practical Extraction 

logwatch 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