|
From: | Ognyan Kulev |
Subject: | Re: windows-1251 |
Date: | Sun, 05 Oct 2003 11:31:26 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030930 |
Richard Stallman wrote:
> (require 'codepage) > (codepage-setup 1251)> > (define-coding-system-alias 'windows-1251 'cp1251) > > and I reopen the file, all is shown correct. > > What's the problem?See the description of cpNNN coding systems in the Emacs manual: they are not loaded by default. codepage-setup loads them. Is there a reason not to have this coding system defined by default? Perhaps it would be more useful for users to do that.
Well, CP1251 and windows-1251 should be the same, and http://savannah.gnu.org/cgi-bin/viewcvs/emacs/emacs/lisp/language/cyrillic.el.diff?r1=1.42&r2=1.43&diff_format=h "proves" it.
Now more information about the problem.So, we have a file with "coding: windows-1251" and starting "emacs -q file" shows cyrillic in boxes. Changing fonts with Shift-Button1 reveals that this problem appears only in Fontset/Default and Courier/*. (I have M$ fonts installed too, if this matters.) For example, when changing to Fontset/standard and misc/*, cyrillic characters appear correctly.
As I said above, when I eval the above commands and M-x revert-buffer, the cyrillic characters appear correctly in Fontset/Default and Courier/* too.
I'll try to dive deeper about this. Regards, ogi
[Prev in Thread] | Current Thread | [Next in Thread] |