bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in display-time-updates in "Chinese-GB" environment (patch inclu


From: Pavel Janík
Subject: Re: Bug in display-time-updates in "Chinese-GB" environment (patch included)
Date: Tue, 23 Oct 2001 08:57:00 +0200
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50

   From: lyongu@ailab.pku.edu.cn (Lu Yong)
   Date: Tue, 23 Oct 2001 01:51:13 +0800

Hi,

   > When running on Windows 2000 (Simplified Chinese Version),
   > the string returned by display-time-string-forms is encoded
   > in 'chinese-iso-8bit, but it is not decoded correctly when called
   > in display-time-update.  The result is when user eval
   >   (display-time-mode t)
   > the date and time do not display correctly on the modeline.
   > 
   > The fix is simple -- just decoded with the first coding-system
   > found in the language environment.  But not sure whether it works
   > in other language environments.

this is not correct fix. Try running e.g.

LANG=ru_RU emacs -q -l time-patched.el -eval '(setq display-time-day-and-date 
t)' -f display-time

You will see \214's before each letter. The same (bad) behavior applies
when you use cs_CZ. Without that patch (i.e.) in original Emacs it is
correct.

BTW - with original 21.1 after running

LANG=zh_CN emacs -q -eval '(setq display-time-day-and-date t)' -f display-time

it displays Chinese (well, I hope Chinese) characters in the mode-line. My
tests were done on SuSE Linux 7.3.
-- 
Pavel Janík

RPM is crap.
                  -- Hubert Mantel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]