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-3-34-gaafb506 Date: Thu, 24 Sep 2009 17:29:07 +0200 Message-ID: <87k4zogy4c.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 1253806174 17202 80.91.229.12 (24 Sep 2009 15:29:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2009 15:29:34 +0000 (UTC) Cc: guile-devel@gnu.org To: "Michael Gran" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Sep 24 17:29:27 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 1MqqG7-0004xb-8H for guile-devel@m.gmane.org; Thu, 24 Sep 2009 17:29:27 +0200 Original-Received: from localhost ([127.0.0.1]:49172 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqqG6-0003H5-Jx for guile-devel@m.gmane.org; Thu, 24 Sep 2009 11:29:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqqFv-0003Dz-Tq for guile-devel@gnu.org; Thu, 24 Sep 2009 11:29:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqqFr-0003AG-75 for guile-devel@gnu.org; Thu, 24 Sep 2009 11:29:15 -0400 Original-Received: from [199.232.76.173] (port=47127 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqqFr-0003A6-1X for guile-devel@gnu.org; Thu, 24 Sep 2009 11:29:11 -0400 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:15283) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MqqFq-0000Gs-Ic for guile-devel@gnu.org; Thu, 24 Sep 2009 11:29:10 -0400 X-IronPort-AV: E=Sophos;i="4.44,446,1249250400"; d="scan'208";a="36753976" 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; 24 Sep 2009 17:29:09 +0200 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 3 =?iso-8859-1?Q?Vend=E9miaire?= 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 "Thu, 24 Sep 2009 15:17:09 +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:9395 Archived-At: Hi Mike, "Michael Gran" writes: > commit aafb5062b834dc468fa2acdec7eda12e389c5bca > Author: Michael Gran > Date: Thu Sep 24 08:07:38 2009 -0700 > > Language-specific case-conversion doesn't honor locale >=20=20=20=20=20 > Libunistring uses a function uc_locale_language to extract the > current language from the locale information. It does this by calling > setlocale. This makes incompatible with Guile functions that use the > locale_t thread-specific locale API, because the values returned by t= he > call to setlocale ignore the locale set by uselocale. >=20=20=20=20=20 > As a workaround, this patch extracts the language from the locale_t > structure's __names field. Unfortunately this is not an option because it=E2=80=99s way too fragile, a= nd will not compile non-GNU systems that implement this API (such as Darwin, and any POSIX=C2=A02008 system). How about reporting a bug against libunistring so that it uses uselocale(3) instead of setlocale(3) to determine the current language when uselocale(3) is available? Furthermore, we could suggest that support for the =E2=80=98locale_t=E2=80= =99 API would be great. :-) Thanks, Ludo=E2=80=99.