unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#17865: 24.3.92; encode-coding-string returns 1
@ 2014-06-27 17:30 Leo Liu
  2014-06-27 20:15 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Leo Liu @ 2014-06-27 17:30 UTC (permalink / raw)
  To: 17865


(with-temp-buffer
  (set-buffer-multibyte nil)
  (list (encode-coding-string "我" 'utf-8 nil (current-buffer))
        (buffer-string)))

In my emacs it inserts three bytes yet return just one. Bug?

Leo





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-28  7:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 17:30 bug#17865: 24.3.92; encode-coding-string returns 1 Leo Liu
2014-06-27 20:15 ` Eli Zaretskii
2014-06-27 23:56   ` Leo Liu
2014-06-28  7:00     ` Eli Zaretskii
2014-06-28  7:29     ` Andreas Schwab

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).