From: Eli Zaretskii <eliz@gnu.org>
To: Tiphaine Turpin <tiphaine.turpin@inria.fr>
Cc: 10919-done@debbugs.gnu.org
Subject: bug#10919: emacs-mule/utf-8 difference
Date: Thu, 01 Mar 2012 19:54:48 +0200 [thread overview]
Message-ID: <83399scil3.fsf@gnu.org> (raw)
In-Reply-To: <4F4F984D.2000901@inria.fr>
> Date: Thu, 01 Mar 2012 16:39:57 +0100
> From: Tiphaine Turpin <tiphaine.turpin@inria.fr>
>
> From emacs-devel:
>
> "The byte sequence of a buffer after decoded is always in emacs-mule (in
> emacs-unicode-2 branch, it's utf-8).
This is very old info. The emacs-unicode-2 branch was merged with the
mainline when Emacs 23.1 was released.
> So, changing
> buffer-file-coding-system or any other coding-system-related variables
> doesn't affects position-bytes."
>
> However, this is not the case with 3bytes utf8 characters:
> position-bytes counts them as 3 bytes, but process-send-string wirtes 4
> bytes.
process-send-string _encodes_ the string, it does not send the
internal representation of the string in the buffer. Using
process-send-string is like writing the string to a disk file: Emacs
encodes it before sending or writing.
Therefore, buffer-file-coding-system _does_ affect what is being sent.
I'm closing this non-bug.
prev parent reply other threads:[~2012-03-01 17:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 15:39 bug#10919: emacs-mule/utf-8 difference Tiphaine Turpin
2012-03-01 15:48 ` Tiphaine Turpin
2012-03-01 17:45 ` Stefan Monnier
2012-03-01 17:54 ` Eli Zaretskii [this message]
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=83399scil3.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=10919-done@debbugs.gnu.org \
--cc=tiphaine.turpin@inria.fr \
/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.