emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to use string-to/as-unibyte correctly?


From: Leo Liu
Subject: How to use string-to/as-unibyte correctly?
Date: Tue, 21 Jun 2016 07:40:31 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.95 (OS X 10.11.5)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]