all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Dzhus <dima@sphinx.net.ru>
To: help-gnu-emacs@gnu.org
Subject: Re: decode-coding-string question
Date: Fri, 15 Aug 2008 20:06:59 +0400	[thread overview]
Message-ID: <87ljyy9s9o.fsf@sphinx.net.ru> (raw)
In-Reply-To: mailman.16762.1218785885.18990.help-gnu-emacs@gnu.org

Eli Zaretskii wrote:

>> From: Dmitry Dzhus <dima@sphinx.net.ru>
>> 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

  parent reply	other threads:[~2008-08-15 16:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-14 21:02 decode-coding-string question Ted Zlatanov
2008-08-14 22:19 ` Dmitry Dzhus
2008-08-15  7:37   ` Eli Zaretskii
2008-08-15 15:54   ` Ted Zlatanov
2008-08-15 17:04     ` Eli Zaretskii
     [not found]     ` <mailman.16821.1218819933.18990.help-gnu-emacs@gnu.org>
2008-08-18 13:58       ` Ted Zlatanov
2008-08-18 16:09         ` Nikolaj Schumacher
2008-08-18 17:45         ` David Golden
2008-08-18 19:11         ` Eli Zaretskii
2008-08-19  8:34           ` Kevin Rodgers
     [not found]         ` <mailman.16993.1219086714.18990.help-gnu-emacs@gnu.org>
2008-08-18 20:07           ` Ted Zlatanov
2008-08-18 23:01             ` David Golden
2008-08-19 13:48               ` Ted Zlatanov
     [not found]   ` <mailman.16762.1218785885.18990.help-gnu-emacs@gnu.org>
2008-08-15 16:06     ` Dmitry Dzhus [this message]
2008-08-14 22:20 ` David Golden

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ljyy9s9o.fsf@sphinx.net.ru \
    --to=dima@sphinx.net.ru \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.