From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: `decode-coding-string' question Date: Thu, 06 Jul 2006 23:18:29 +0300 Message-ID: References: <200607040035.01379.pogonyshev@gmx.net> <200607051911.45299.pogonyshev@gmx.net> <200607061852.28566.pogonyshev@gmx.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1152217151 26827 80.91.229.2 (6 Jul 2006 20:19:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Jul 2006 20:19:11 +0000 (UTC) Cc: handa@m17n.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 06 22:19:06 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 1FyaJL-0002DG-8F for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 22:18:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyaJK-0002Qn-It for ged-emacs-devel@m.gmane.org; Thu, 06 Jul 2006 16:18:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FyaJ7-0002NV-Oi for emacs-devel@gnu.org; Thu, 06 Jul 2006 16:18:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FyaJ4-0002HT-JP for emacs-devel@gnu.org; Thu, 06 Jul 2006 16:18:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FyaJ4-0002HK-5U for emacs-devel@gnu.org; Thu, 06 Jul 2006 16:18:38 -0400 Original-Received: from [192.114.186.20] (helo=nitzan.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FyaJK-00006D-5X for emacs-devel@gnu.org; Thu, 06 Jul 2006 16:18:54 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-192-59.inter.net.il [83.130.192.59]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id EAQ89117 (AUTH halo1); Thu, 6 Jul 2006 23:18:30 +0300 (IDT) Original-To: Paul Pogonyshev In-reply-to: <200607061852.28566.pogonyshev@gmx.net> (message from Paul Pogonyshev on Thu, 6 Jul 2006 18:52:28 +0300) 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:56653 Archived-At: > From: Paul Pogonyshev > Date: Thu, 6 Jul 2006 18:52:28 +0300 > Cc: Kenichi Handa > > > > I do. But I need to know where they begin in the buffer (containing > > > the encoded C string.) I don't see a way to keep this information at > > > present... :( > > > > How did you make that buffer? Why don't you have an > > already-decoded text in that buffer? > > Because it's a C source file. Strings have to be encoded there. Paul, there's some misunderstanding here, so please bear with us. Handa-san cannot understand how come you have undecoded characters in the buffer, and neither can I. The fact that it's a C file does not matter: Emacs _always_ decodes characters when it visits the file, no matter if it's a C file or something else. In the text you get in your buffer the characters should be decoded. The question is, how come it didn't decode these characters in your case? Are there other non-ASCII characters in the same file, perhaps? if so, what characters are those? For that matter, can you post a small sample file that, when visited in Emacs, leaves the UTF-8 encoded characters undecoded in the buffer? Please post that file as a binary attachment, to avoid munging it by email software en- and de-coding.