From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Krjukov Victor" Newsgroups: gmane.emacs.bugs Subject: Proposal about adding cp1251 (Russian Windoz) encoding in Emacs Date: Tue, 27 Aug 2002 13:04:16 +0400 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <7CF3E427AE54FC42A26E68C5A89C186910C763@zeal.ufg.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1030439043 5321 127.0.0.1 (27 Aug 2002 09:04:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2002 09:04:03 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17jcGW-0001NL-00 for ; Tue, 27 Aug 2002 11:04:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jcHr-000220-00; Tue, 27 Aug 2002 05:05:23 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17jcGt-0001yg-00 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2002 05:04:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17jcGq-0001yS-00 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2002 05:04:22 -0400 Original-Received: from zealex.ufg.com ([212.44.139.89]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17jcGq-0001y3-00 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2002 05:04:20 -0400 content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Proposal about adding cp1251 (Russian Windoz) encoding in Emacs Thread-Index: AcJNqLh7TfFmhKabRUSpYO+J85d0Qg== Original-To: Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3316 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3316 Greetings, Emacs developers. MULE support in Emacs contains several encodings for Russian language:=20 ISO 8859-5, used as main encoding (it's called a 'standard' encoding but _nobody_ here actually use it); koi8-r (de-facto standard in email transmission and standard in *nix systems - almost all *nix systems in Russia use it); and Alternativnyj (also known as cp866) - an ancient encoding come from DOS world. But Emacs has no support for cp1251 (standard Russian encoding in Windows), though we have and activelly use Emacs for Windows. I've made several changes in several *el files from Emacs 21.2 distribution, but it seems to me that you need to recompile Emacs to include additional language in MULE support (and I have no C compiler on my Windows system). Could someone check attached files and probably implement them in future Emacs version? This would be a great help to russian windows-emacs users. Thank you very much for this great program, Victor V. Kryukov. PS. I've also made some changes in lisp/language/cyrillic.el: fix some typo (staff instead of stuff ;) and fix some bugs (e.g. cyrillic-encode-koi8-r-char instead of cyrillic-encode-alternativnyj-char at the bottom of folloving excerpt in lines 203-217 of cyrillic.el looks really strange). I have also another question: comparing sections in cyrillic.el for koi8-r and for alternativnyj you may notice that one line =20 (if (r0 =3D=3D ,(charset-id 'cyrillic-iso8859-5)) only present for define-ccl-program ccl-encode-koi8 and not in ccl-encode-alternativnyj - is it a bug or a feature? --- (make-coding-system 'cyrillic-alternativnyj 4 ?A "ALTERNATIVNYJ 8-bit encoding for Cyrillic" '(ccl-decode-alternativnyj . ccl-encode-alternativnyj) `((safe-chars . ,(let ((table (make-char-table 'safe-chars)) (i 0)) (while (< i 256) (aset table (aref cyrillic-alternativnyj-decode-table i) t) (setq i (1+ i))) table)) (valid-codes (0 . 175) (224 . 241) 255) (charset-origin-alist (cyrillic-iso8859-5 "ALTERNATIVNYJ" =09 cyrillic-encode-koi8-r-char)))) --- ---- Sincerely Yours, Victor V. Kryukov, UFG phone: +7501 967 3727, ext. 4387 email: vkryukov@ufg.com