From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [Guile-commits] GNU Guile branch, master, updated. release_1-9-4-55-gb158c2c Date: Wed, 28 Oct 2009 14:45:21 +0100 Message-ID: <87aazbd43y.fsf@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1256738053 5518 80.91.229.12 (28 Oct 2009 13:54:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 28 Oct 2009 13:54:13 +0000 (UTC) Cc: guile-devel@gnu.org To: "Michael Gran" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 28 14:54:05 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 1N38qQ-0007qr-He for guile-devel@m.gmane.org; Wed, 28 Oct 2009 14:45:46 +0100 Original-Received: from localhost ([127.0.0.1]:55825 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N38qQ-0000eS-45 for guile-devel@m.gmane.org; Wed, 28 Oct 2009 09:45:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N38qB-0000Zd-2F for guile-devel@gnu.org; Wed, 28 Oct 2009 09:45:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N38q6-0000X7-FA for guile-devel@gnu.org; Wed, 28 Oct 2009 09:45:30 -0400 Original-Received: from [199.232.76.173] (port=58872 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N38q5-0000Wv-Nr for guile-devel@gnu.org; Wed, 28 Oct 2009 09:45:25 -0400 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:51263) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1N38q4-00012g-Ss for guile-devel@gnu.org; Wed, 28 Oct 2009 09:45:25 -0400 X-IronPort-AV: E=Sophos;i="4.44,640,1249250400"; d="scan'208";a="39098946" Original-Received: from laptop-147-210-128-170.labri.fr (HELO nixey) ([147.210.128.170]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 28 Oct 2009 14:45:23 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Brumaire an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: x86_64-unknown-linux-gnu In-Reply-To: (Michael Gran's message of "Wed, 28 Oct 2009 13:34:47 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:9591 Archived-At: Hello! "Michael Gran" writes: > commit 3a5bc4fadac5b1574f081e7ecd3a043cbd395794 > Author: Michael Gran > Date: Wed Oct 28 06:24:23 2009 -0700 > > Modify bytevectors/string conversions to allow wide strings >=20=20=20=20=20 > The bytevector to string conversion functions were accomplished > by converting via locale strings. This did not allow conversions > of wide strings in an 8-bit locale. This is avoided by using knowled= ge > of the storage format of the string. >=20=20=20=20=20 > * libguile/bytevectors.c (STRING_TO_UTF, scm_string_to_utf8): modify > string to bytevector conversion to use internal string information > (UTF_TO_STRING, scm_utf8_to_string): modify bytevector to string > conversion Excellent, thanks! Could you add a couple of tests for this one (say, one or two with a narrow string, and one or two with a wide string)? Ludo=E2=80=99.