From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Re: Wide strings Date: Mon, 26 Jan 2009 07:21:35 -0800 (PST) Message-ID: <224445.33192.qm@web37908.mail.mud.yahoo.com> References: <470889.75847.qm@web37904.mail.mud.yahoo.com> <87wscjvwyq.fsf@gnu.org> <437818.2998.qm@web37907.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233001261 9773 80.91.229.12 (26 Jan 2009 20:21:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2009 20:21:01 +0000 (UTC) To: Mike Gran , guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 26 21:22:14 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LRXxm-0005PX-HH for guile-devel@m.gmane.org; Mon, 26 Jan 2009 21:21:42 +0100 Original-Received: from localhost ([127.0.0.1]:34680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRXwP-0003mL-Lb for guile-devel@m.gmane.org; Mon, 26 Jan 2009 15:20:17 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LRWYZ-0001Is-TL for guile-devel@gnu.org; Mon, 26 Jan 2009 13:51:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LRWYX-0001HJ-UR for guile-devel@gnu.org; Mon, 26 Jan 2009 13:51:35 -0500 Original-Received: from [199.232.76.173] (port=42378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LRWYX-0001HG-Kg for guile-devel@gnu.org; Mon, 26 Jan 2009 13:51:33 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:51777) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LRV3n-0003qW-9P for guile-devel@gnu.org; Mon, 26 Jan 2009 12:15:43 -0500 Original-Received: from web37908.mail.mud.yahoo.com ([209.191.91.170]) by mx20.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LRTJN-0005JY-BQ for guile-devel@gnu.org; Mon, 26 Jan 2009 10:23:41 -0500 Original-Received: (qmail 33724 invoked by uid 60001); 26 Jan 2009 15:21:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=bAUaLcd9sYremyeuHK/TJNaRwBshm/n4LSYmUkOAm4mRapHKrL0ltrhtFBXzbfRqsLCbT8B7IATqqJaeXtINKqj/Gqu/A9RMiiPSauLp9SeGZWp3NEtk/+i5d1SgMetaw3qtn7p7/O5bmDqpUxV5xKCQ1R/i2Ji64k/vEFEOJ+U=; X-YMail-OSG: A84q4eEVM1nHZx335EoxkhNPLwZm1kHtk8ifNXMwhvyz4k1nEhlrh8bktdlGGISyPVBEoubFoF_.TmV0e_GYb1l4zSscZHRHASMPhUa3Q85d2HdksvKwynxuJMw56soOJXhe36UOIN6xZoD3YbSCuW.Sfv7g9STvrm2F4I0wbJbE Original-Received: from [71.130.218.115] by web37908.mail.mud.yahoo.com via HTTP; Mon, 26 Jan 2009 07:21:35 PST X-Mailer: YahooMailRC/1156.82 YahooMailWebService/0.7.260.1 X-detected-kernel: by mx20.gnu.org: FreeBSD 6.x (1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8075 Archived-At: > > Ludo sez, > Mike sez, > > 1. IMO it'd be nice to have ASCII strings special-cased so that they > > are always encoded in ASCII. This would allow for memory savings > > since, e.g., most symbols are expected to contain only ASCII > > characters. It might also simplify interaction with C in certain > > cases; for instance, it would make it easy to have statically > > initialized ASCII Scheme strings. > > Why not? It does solve the initialization problem of dealing with strings > before setlocale has been called. One thing I only just noticed today is that the first 256 Unicode chars are ISO-8859-1. Maybe then the idea should be to make strings where the size of the character can be 1 or 4 bytes but the encoding is always in Unicode code points, which in the 1-byte-char case would then be coincidentally ISO-8859-1. Thanks, Mike Gran