At 2011-08-29T17:52:14+02:00, Martin Costabel wrote:

> This could be a problem of locale settings. Try if
>
>    env LC_ALL=C fortune
>
> gives you some output.

Many thanks.  It works.  It turned out that LC_CTYPE was set to "UTF-8"
by default in my installation of Leopard, and that seems to have caused
the problem.  Setting it to "C" or something like "en_GB.UTF-8" makes
the fortune command print.  Now I have put

----------------------------------------------------------------------
foreach i ( COLLATE CTYPE MESSAGES MONETARY NUMERIC TIME ALL )
  unsetenv LC_${i}
end
setenv LANG "en_GB.UTF-8"
setenv LC_COLLATE "C"
----------------------------------------------------------------------

in my .tcshrc, so I get

----------------------------------------------------------------------
[pegasus:/Users/raghu]% locale
LANG="en_GB.UTF-8"
LC_COLLATE="C"
LC_CTYPE="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_ALL=
[pegasus:/Users/raghu]%
----------------------------------------------------------------------

and fortune prints as expected.

Regards,
Raghavendra.

-- 
N. Raghavendra <[email protected]> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Fink-users mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to