From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: proposal: scm_c_public_ref et al Date: Sun, 06 Mar 2011 11:24:33 -0500 Message-ID: <874o7g1ake.fsf@netris.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1299428698 15845 80.91.229.12 (6 Mar 2011 16:24:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Mar 2011 16:24:58 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 06 17:24:53 2011 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.69) (envelope-from ) id 1PwGlI-0001zI-TI for guile-devel@m.gmane.org; Sun, 06 Mar 2011 17:24:53 +0100 Original-Received: from localhost ([127.0.0.1]:54836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwGlI-0002JW-8C for guile-devel@m.gmane.org; Sun, 06 Mar 2011 11:24:52 -0500 Original-Received: from [140.186.70.92] (port=33316 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwGlD-0002Gm-QR for guile-devel@gnu.org; Sun, 06 Mar 2011 11:24:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwGlC-00088c-HF for guile-devel@gnu.org; Sun, 06 Mar 2011 11:24:47 -0500 Original-Received: from world.peace.net ([216.204.32.208]:39830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwGlC-00088D-Bf for guile-devel@gnu.org; Sun, 06 Mar 2011 11:24:46 -0500 Original-Received: from ip68-9-118-38.ri.ri.cox.net ([68.9.118.38] helo=freedomincluded) by world.peace.net with esmtpa (Exim 4.69) (envelope-from ) id 1PwGl6-0006q5-RQ; Sun, 06 Mar 2011 11:24:40 -0500 Original-Received: from mhw by freedomincluded with local (Exim 4.69) (envelope-from ) id 1PwGkz-0007DT-Kd; Sun, 06 Mar 2011 11:24:33 -0500 In-Reply-To: (Andy Wingo's message of "Sun, 06 Mar 2011 12:24:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.204.32.208 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:11788 Archived-At: Andy Wingo writes: > SCM scm_c_public_lookup (const char *module_name, const char *name); > SCM scm_c_private_lookup (const char *module_name, const char *name); > SCM scm_c_public_ref (const char *module_name, const char *name); > SCM scm_c_private_ref (const char *module_name, const char *name); > > Like the above, but with locale-encoded C strings, for convenience. > Module names are encoded as for `scm_c_resolve_module'. Given that the C strings passed to these functions will more often than not be embedded in the source code, it seems to me that it's a mistake assume that they are encoded in the current locale. The current locale is normally the locale of the user, which may be different from the locale that the source code is written in. Maybe utf8 is a better choice? Best, Mark