unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Liu <sdl.web@gmail.com>
To: emacs-devel@gnu.org
Subject: How to use string-to/as-unibyte correctly?
Date: Tue, 21 Jun 2016 07:40:31 +0800	[thread overview]
Message-ID: <m1a8ifctu8.fsf@zeuss-MBP.lan> (raw)

Hi List,

As part of discussion on bug http://debbugs.gnu.org/23750, I am
wondering what is the deal with string-to/as-unibyte? How to use them
correctly or are they in their way out (obsolete)? Thanks.

,----[ Eli Zaretskii ]
| neither string-to-unibyte not string-as-unibyte should ever be used in
| applications, their use is more often than not a sign of some basic
| misunderstanding of text encoding.
`----

,----[ Eli Zaretskii ]
| Bottom line: like I said, there should be no reason to use
| string-*-unibyte in modern Emacs code on the url-http level or higher
| (maybe not at all). Its use is a sign of some basic misunderstanding,
| or a bug elsewhere, or remnant of old problems that no longer exist.
| So I think we should reconsider the solution on master as well.
`----

Leo




             reply	other threads:[~2016-06-20 23:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-20 23:40 Leo Liu [this message]
2016-06-21  0:56 ` How to use string-to/as-unibyte correctly? Stefan Monnier
2016-06-22  3:33   ` Leo Liu
2016-06-22  7:49     ` Andreas Schwab
2016-06-26  2:02       ` Leo Liu
2016-06-22 14:59     ` Eli Zaretskii
2016-06-25  1:57       ` Leo Liu
2016-06-25  8:01         ` Eli Zaretskii
2016-06-21  2:36 ` Eli Zaretskii
2016-06-26  2:01 ` Leo Liu

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m1a8ifctu8.fsf@zeuss-MBP.lan \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@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 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).