emacs-devel
[Top][All Lists]
Advanced

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

Re: (aset UNIBYTE-STRING MULTIBYTE-CHAR)


From: Eli Zaretskii
Subject: Re: (aset UNIBYTE-STRING MULTIBYTE-CHAR)
Date: Fri, 15 Feb 2008 10:42:13 +0200

> From: Kenichi Handa <address@hidden>
> Date: Fri, 15 Feb 2008 10:39:01 +0900
> Cc: address@hidden
> 
> The problem here is that (make-string 1 ?a) is a unibyte
> string, but "a" generated by buffer-substring on a multibyte
> buffer is a multibyte string.

Why should (make-string 1 ?a) produce a unibyte string?  Why can't it
produce a multibyte string instead?

More generally, how about if we make sure _all_ string-producing
primitives return multibyte strings, and unibyte strings can only be
produced by a few specialized ones which have "-unibyte-" in their
name?




reply via email to

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