From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: converting between charsets Date: Mon, 15 May 2006 10:11:48 -0400 Message-ID: References: <87lktejh6f.fsf@myxomop.com> <87u082109z.fsf-monnier+emacs@gnu.org> <84veshaajc.fsf@vinci.loc> <87d5ep1a2c.fsf-monnier+emacs@gnu.org> <84hd40am8t.fsf@vinci.loc> <84ac9rah6z.fsf@vinci.loc> <87k68v82q6.fsf-monnier+emacs@gnu.org> <84bqu17on7.fsf@vinci.loc> <87wtcpqorp.fsf-monnier+emacs@gnu.org> <84zmhk4hnn.fsf@vinci.loc> <871wuwqg43.fsf-monnier+emacs@gnu.org> <84ves74ytd.fsf@vinci.loc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147702347 31411 80.91.229.2 (15 May 2006 14:12:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 May 2006 14:12:27 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 15 16:12:21 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ffdno-0007Sf-9k for ged-emacs-devel@m.gmane.org; Mon, 15 May 2006 16:12:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ffdnn-0002C7-Eq for ged-emacs-devel@m.gmane.org; Mon, 15 May 2006 10:12:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ffdnc-0002BQ-9p for emacs-devel@gnu.org; Mon, 15 May 2006 10:11:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ffdna-0002AN-V2 for emacs-devel@gnu.org; Mon, 15 May 2006 10:11:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ffdna-0002AK-Rg for emacs-devel@gnu.org; Mon, 15 May 2006 10:11:50 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ffdq1-0004pL-Ah for emacs-devel@gnu.org; Mon, 15 May 2006 10:14:21 -0400 Original-Received: from localhost ([70.53.193.91]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060515141150.HGCQ20622.tomts10-srv.bellnexxia.net@localhost>; Mon, 15 May 2006 10:11:50 -0400 Original-Received: by localhost (Postfix, from userid 20484) id F37BB7EC9; Mon, 15 May 2006 10:11:48 -0400 (EDT) Original-To: emacs-devel@gnu.org In-Reply-To: <84ves74ytd.fsf@vinci.loc> (Alexander Kotelnikov's message of "Mon, 15 May 2006 09:55:10 +0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:54504 Archived-At: SM> Than show us how and when you call encode-coding-region. SM> I.e. repeat the above but in elisp rather than english. SM> Assume you're explining it to a complete idiot. SM> SM> Please take seriously the bit about the idiot. SM> >>> For example. >>> 1. (find-file "/tmp/test.txt") SM> SM> How did you start Emacs? > For example 'emacs -q', even if do not suppress reading my ~/.emacs > the result is the same. Under X or under a tty? >>> 2. enter some text in Russian (after I toggled xkb layout) >>> 3. M-: (encode-coding-region (point-min) (point-max) 'koi8-r) and >>> Russian characters become '?'. SM> What did you expect instead? > I expect that cyrrillic characters will be encoded to their koi8-r values. If you put the cursor on the russian chars before calling encode-coding-region and hit C-u C-x = what does it say? If you put the cursor on the `?' that replaced that char and hit C-u C-x = what does it say? Stefan