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: Sat, 16 Feb 2008 14:55:40 +0200

> From: Miles Bader <address@hidden>
> Cc: Kenichi Handa <address@hidden>, address@hidden,
>         address@hidden
> Date: Fri, 15 Feb 2008 17:53:50 +0900
> 
> Eli Zaretskii <address@hidden> writes:
> > 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?
> 
> Why?

Because unibyte strings are evil, and shouldn't be needed in Emacs,
except in a few very specialized situations.

> That doesn't seem to help with the issue being discussed (Stefan's
> solution seems pretty good though)....

The fact that (make-string 1 ?a) produces a unibyte string was
mentioned as one problem.




reply via email to

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