From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Unibyte strings in Lisp data structures Date: Tue, 13 Jul 2010 20:40:53 +0200 Message-ID: References: <83aapvsbfh.fsf@gnu.org> <837hkzs6k8.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1279046526 24371 80.91.229.12 (13 Jul 2010 18:42:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 13 Jul 2010 18:42:06 +0000 (UTC) Cc: emacs-devel@gnu.org, handa@m17n.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 13 20:42:03 2010 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.69) (envelope-from ) id 1OYkQZ-0002cR-7K for ged-emacs-devel@m.gmane.org; Tue, 13 Jul 2010 20:41:59 +0200 Original-Received: from localhost ([127.0.0.1]:43840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYkQY-0004qD-3G for ged-emacs-devel@m.gmane.org; Tue, 13 Jul 2010 14:41:58 -0400 Original-Received: from [140.186.70.92] (port=36808 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYkPe-0004E0-HS for emacs-devel@gnu.org; Tue, 13 Jul 2010 14:41:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYkPc-0002tD-U7 for emacs-devel@gnu.org; Tue, 13 Jul 2010 14:41:02 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:49893) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYkPY-0002sA-Oo; Tue, 13 Jul 2010 14:40:56 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id E32EA1C00405; Tue, 13 Jul 2010 20:40:53 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-106-124.dynamic.mnet-online.de [88.217.106.124]) by mail.mnet-online.de (Postfix) with ESMTP id B87901C006A3; Tue, 13 Jul 2010 20:40:53 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 44066CA297; Tue, 13 Jul 2010 20:40:53 +0200 (CEST) X-Yow: In order to make PLANS for the WEEKEND...so that we can read RESTAURANT REVIEWS and decide to GO to that restaurant & then NEVER GO...so we can meet a FRIEND after work in a BAR and COMPLAIN about Interior Sect'y JAMES WATT until the SUBJECT is changed to NUCLEAR BLACKMAIL...and so our RELATIVES can FORCE us to listen to HOCKEY STATISTICS while we wait for them to LEAVE on the 7:48.... In-Reply-To: <837hkzs6k8.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 13 Jul 2010 19:13:59 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:127205 Archived-At: Eli Zaretskii writes: > The question is now: will this rule remain stable for time long enough > to rely on it? Or is it safer to convert both strings to the same > representation for comparison? I think we should make it that (equal s (string-to-multibyte s)) is always true. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."