From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Text collation Date: Wed, 13 Dec 2006 10:28:07 +0100 Organization: LAAS-CNRS Message-ID: <87irggi1qw.fsf@laas.fr> References: <877j00cirs.fsf@laas.fr> <87hcz3mqhr.fsf@zip.com.au> <87r6x0qjyy.fsf@laas.fr> <871wn423ui.fsf@zip.com.au> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1166002191 6796 80.91.229.10 (13 Dec 2006 09:29:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 13 Dec 2006 09:29:51 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Dec 13 10:29:50 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuQQt-0005sK-AG for guile-devel@m.gmane.org; Wed, 13 Dec 2006 10:29:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuQQs-0000j3-PD for guile-devel@m.gmane.org; Wed, 13 Dec 2006 04:29:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuQQk-0000hh-79 for guile-devel@gnu.org; Wed, 13 Dec 2006 04:29:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuQQg-0000h7-Aa for guile-devel@gnu.org; Wed, 13 Dec 2006 04:29:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuQQg-0000h4-6Z for guile-devel@gnu.org; Wed, 13 Dec 2006 04:29:34 -0500 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GuQQg-0006wA-0j for guile-devel@gnu.org; Wed, 13 Dec 2006 04:29:34 -0500 Original-Received: from messiaen.laas.fr (messiaen [IPv6:2001:660:6602:0:230:65ff:fed4:9d20]) by laas.laas.fr (8.13.8/8.13.8) with SMTP id kBD9TVnd000435 for ; Wed, 13 Dec 2006 10:29:31 +0100 (MET) Original-Received: by messiaen.laas.fr (sSMTP sendmail emulation); Wed, 13 Dec 2006 10:28:07 +0100 Original-To: Guile-Devel X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 23 Frimaire an 215 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: Guile-Devel In-Reply-To: <871wn423ui.fsf@zip.com.au> (Kevin Ryde's message of "Wed, 13 Dec 2006 08:37:09 +1100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-Spam-Score: 0.306 () MAILTO_TO_SPAM_ADDR,NO_RELAYS X-Scanned-By: MIMEDefang at CNRS-LAAS on IPv6:2001:660:6602::2 X-MIME-Autoconverted: from 8bit to quoted-printable by laas.laas.fr id kBD9TVnd000435 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:6329 Archived-At: Kevin Ryde writes: > ludovic.courtes@laas.fr (Ludovic Court=E8s) writes: >> >> +/* Throw an exception corresponding to error ERR. */ >> +static void inline >> +scm_locale_error (const char *func_name, int err) >> +{ >> + SCM s_err; >> + >> + s_err =3D scm_from_int (err); >> + scm_error (scm_system_error_key, func_name, >> + "Failed to install locale", >> + scm_cons (scm_strerror (s_err), SCM_EOL), >> + scm_cons (s_err, SCM_EOL)); >> +} > > This doesn't display, > > :3:1: In procedure string-locale "x" "y" ...): > :3:1: Failed to install locale > Exception during displaying of error: misc-error > ABORT: (system-error) That's on a system where `USE_GNU_LOCALE_API' is not defined, right? > It'd be good if it was a standard SCM_SYSERROR and was detected on > creating a locale. It's not an `SCM_SYSERROR' because the error code is provided by variable ERR, not by ERRNO. That said, it could use `SCM_SYSERROR_MSG'. In order to detect locale unavailability upon locale create on non-GNU systems, it would have to try to actually install the locale first. I guess we can do it, although that adds a bit of overhead. > Incidentally, in the fallback code there seems to be something fishy > after a failed install. If you try to use the offending locale object > a second time it succeeds. Hmm, weird. Is the locale in question available on your system? I'll give it a try. Thanks, Ludovic. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel