[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in display-time-updates in "Chinese-GB" environment (patch inclu
Re: Bug in display-time-updates in "Chinese-GB" environment (patch included)
Tue, 23 Oct 2001 08:57:00 +0200
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1.50
From: address@hidden (Lu Yong)
Date: Tue, 23 Oct 2001 01:51:13 +0800
> 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
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.
RPM is crap.
-- Hubert Mantel