From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter TB Brett Newsgroups: gmane.lisp.guile.user Subject: A question about scm_{to,from}_locale_string() Date: Sat, 11 Jun 2011 11:13:33 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1307787302 17436 80.91.229.12 (11 Jun 2011 10:15:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2011 10:15:02 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jun 11 12:14:58 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QVLDW-00077B-BG for guile-user@m.gmane.org; Sat, 11 Jun 2011 12:14:58 +0200 Original-Received: from localhost ([::1]:39369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVLDV-00073D-9g for guile-user@m.gmane.org; Sat, 11 Jun 2011 06:14:57 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53714) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVLCX-000737-O9 for guile-user@gnu.org; Sat, 11 Jun 2011 06:13:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVLCW-0007t6-LO for guile-user@gnu.org; Sat, 11 Jun 2011 06:13:57 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:39183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVLCW-0007sb-GS for guile-user@gnu.org; Sat, 11 Jun 2011 06:13:56 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QVLCT-0006oi-QT for guile-user@gnu.org; Sat, 11 Jun 2011 12:13:53 +0200 Original-Received: from 109.224.138.141 ([109.224.138.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2011 12:13:53 +0200 Original-Received: from peter by 109.224.138.141 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 11 Jun 2011 12:13:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 109.224.138.141 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:Nis5EqC/9YzGmDe14zR9pz705lE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8629 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable Hi folks, gEDA currently uses scm_to_locale_string() and scm_from_locale_string() to convert C char* strings to and from SCM strings. All of our strings are encoded as UTF-8, but we can't use scm_to_utf8_stringn() and scm_from_utf8_string() because they don't exist in Guile 1.8.8 (which we're going to have to continue to support for some time). The question, then, is whether using scm_{to,from}_locale_string() with UTF-8 strings will "just work" in both Guile 1.8.8 and Guile 2.0.1 as long as we make sure that the current locale is a UTF-8 locale? Thanks in advance, Peter =2D-=20 Peter Brett Remote Sensing Research Group Surrey Space Centre --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk3zP80ACgkQZ7Gbq7g7vpojfQCbBGWuUUnfR8wSnWZz4qshS3zR I5EAoJKxQYsfIQu9uR6NcfCla1xpjBTA =T/3u -----END PGP SIGNATURE----- --=-=-=--