From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: A question about scm_{to,from}_locale_string() Date: Sun, 12 Jun 2011 11:28:11 +0200 Message-ID: <87wrgrv1p0.fsf@ambire.localdomain> References: <87tybw1meh.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1307870946 10124 80.91.229.12 (12 Jun 2011 09:29:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2011 09:29:06 +0000 (UTC) Cc: guile-user@gnu.org To: Peter TB Brett Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jun 12 11:29:02 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 1QVgyb-0004ce-9d for guile-user@m.gmane.org; Sun, 12 Jun 2011 11:29:01 +0200 Original-Received: from localhost ([::1]:52219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVgya-0007Qv-BN for guile-user@m.gmane.org; Sun, 12 Jun 2011 05:29:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53639) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVgyO-0007Qp-D5 for guile-user@gnu.org; Sun, 12 Jun 2011 05:28:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVgyN-0002WG-4O for guile-user@gnu.org; Sun, 12 Jun 2011 05:28:48 -0400 Original-Received: from smtp207.alice.it ([82.57.200.103]:51576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVgyM-0002UO-LZ for guile-user@gnu.org; Sun, 12 Jun 2011 05:28:47 -0400 Original-Received: from ambire.localdomain (87.13.1.157) by smtp207.alice.it (8.5.124.08) id 4DE640D5010827AC; Sun, 12 Jun 2011 11:28:26 +0200 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1QVgxo-0000sn-0c; Sun, 12 Jun 2011 11:28:12 +0200 In-Reply-To: (Peter TB Brett's message of "Sun, 12 Jun 2011 08:09:03 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.103 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:8634 Archived-At: () Peter TB Brett () Sun, 12 Jun 2011 08:09:03 +0100 I've added a configure check that defines scm_{to,from}_utf8_string to scm_{to,from}_locale_string if the former isn't available in libguile. Seems to work okay. Obviously there are some cases where we still use the locale functions explicitly, e.g. parsing command-line arguments. Probably sooner or later it behooves us (clients of libguile) to hold a libguile "portability summit", where common bits of autoconfigury, shimming, etc can be actively pooled, refactored and (hopefully) incorporated into a time-saving tarball. In this way, stuff like the autoconf check you mention, and stuff like Autogen's or Serveez's C shims can be centrally maintained and not re-invented time and time again. ____________________________________________________________________ [0] or "pit of despair", depending on your mood :-/