From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: (aset UNIBYTE-STRING MULTIBYTE-CHAR) Date: Sat, 16 Feb 2008 14:55:40 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1203166569 25831 80.91.229.12 (16 Feb 2008 12:56:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Feb 2008 12:56:09 +0000 (UTC) Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, handa@m17n.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 16 13:56:32 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQMaf-0002AP-Us for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 13:56:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQMaB-0008CB-Nl for ged-emacs-devel@m.gmane.org; Sat, 16 Feb 2008 07:55:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQMa7-0008AD-6i for emacs-devel@gnu.org; Sat, 16 Feb 2008 07:55:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQMa4-00088b-RA for emacs-devel@gnu.org; Sat, 16 Feb 2008 07:55:49 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQMa4-00088Y-Kv for emacs-devel@gnu.org; Sat, 16 Feb 2008 07:55:48 -0500 Original-Received: from heller.inter.net.il ([213.8.233.23]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQMa0-0002ew-MJ; Sat, 16 Feb 2008 07:55:44 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-229-204-85.inter.net.il [84.229.204.85]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id EZC31965 (AUTH halo1); Sat, 16 Feb 2008 14:55:40 +0200 (IST) In-reply-to: (message from Miles Bader on Fri, 15 Feb 2008 17:53:50 +0900) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89241 Archived-At: > From: Miles Bader > Cc: Kenichi Handa , monnier@iro.umontreal.ca, > emacs-devel@gnu.org > Date: Fri, 15 Feb 2008 17:53:50 +0900 > > Eli Zaretskii 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.