From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Dzhus Newsgroups: gmane.emacs.help Subject: Re: decode-coding-string question Date: Fri, 15 Aug 2008 20:06:59 +0400 Organization: albasani.net Message-ID: <87ljyy9s9o.fsf@sphinx.net.ru> References: <86wsijz4wt.fsf@lifelogs.com> <877iajck9s.fsf@sphinx.net.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1218818524 27699 80.91.229.12 (15 Aug 2008 16:42:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Aug 2008 16:42:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 15 18:42:55 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KU2O4-0007tF-2m for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 18:42:52 +0200 Original-Received: from localhost ([127.0.0.1]:46655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KU2N6-0004KS-Td for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Aug 2008 12:41:52 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed.straub-nv.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-X-Trace: news.albasani.net nQ3c9Vom+2xBm7r/HNcCVh/pomdcvpzNsXG5q2iQe7GpCJ3THbwjyJyb3BkwXDWyfXTWsfVmyyGbfTur0JfbMiPhrLl5xaKYnVK0rYaRUOl6qTPrqYwfclGHF3IO/ZOi Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Fri, 15 Aug 2008 16:08:37 +0000 (UTC) X-User-ID: 7Av/3zgCo767tADh/65AthHxPeVvMyDjIRHDP0LAgBA= Cancel-Lock: sha1:m05RgJ6vRzcvTGhY8v5tIzCbRwE= sha1:wWIQsy4pfIfQjroFDbSa1fBDO0A= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NNTP-Posting-Host: iwhCIdWci06YIxg1o3MWl72qAT0K2qZbe6qiXpvxM3I= Original-Xref: news.stanford.edu gnu.emacs.help:161331 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56676 Archived-At: Eli Zaretskii wrote: >> From: Dmitry Dzhus >> Date: Fri, 15 Aug 2008 02:19:11 +0400 >> >> Ted Zlatanov wrote: >> >> > This should decode to нуль but doesn't (I get the same string instead): >> > >> > (decode-coding-string "íîëü" 'cp1251) >> > >> > Am I missing something obvious? Do I need to encode the string to >> > something else? >> >> 0. «íóëü», not «íîëü» > > That's not important, the original problem remains, even with a > different spelling of the word. That was nitpicking somewhat irrelevant to unibyte-multibyte problem: Ted expected to get «нуль», and it's «íóëü», though the string he originally provided — «íîëü» — decodes to «ноль»; however, both «нуль» and «ноль» mean «zero». -- Happy Hacking. http://sphinx.net.ru む