unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludovic.courtes@laas.fr (Ludovic Courtès)
Subject: Re: SRFI-14 and locale settings
Date: Thu, 07 Sep 2006 09:21:52 +0200	[thread overview]
Message-ID: <87r6yodtv3.fsf@laas.fr> (raw)
In-Reply-To: <87odtvkxl1.fsf@zip.com.au> (Kevin Ryde's message of "Tue, 05 Sep 2006 09:42:50 +1000")

Hi,

Kevin Ryde <user42@zip.com.au> writes:

> The setlocale call would be a good way.  Maybe the charset tables
> could be reinitialized in scm_setlocale (when setting LC_ALL or
> LC_CTYPE).  I suppose that'd be moderately helpful, and would make
> char-alphabetic? etc match how 1.6 worked.

In fact, I'm afraid we have a problem, because the `is' functions from
<ctype.h> are fully locale-dependent.  Thus, they don't only depend on
the charset being used but also on the language settings, which makes
them unsuitable for the implementation of `char-set:letter' (because it
should contain _all_ the letters representable with the current charset,
not only those of some particular language).

> But I guess really the
> notion of what a character represents beyond ascii isn't specified
> yet.

I'm not an expert in that domain, but the SRFI seemed to imply that the
notion of a letter is pretty well defined in Unicode (which is fortunate
because all the people using the various scripts do know what a letter
is in their script ;-)).

Thanks,
Ludovic.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2006-09-07  7:21 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-03 16:48 SRFI-14 and locale settings Ludovic Courtès
2006-09-04  6:41 ` Neil Jerram
2006-09-04  9:08   ` Ludovic Courtès
2006-09-04 23:42     ` Kevin Ryde
2006-09-07  7:21       ` Ludovic Courtès [this message]
2006-09-07 23:22         ` Kevin Ryde
2006-09-12  9:28           ` Ludovic Courtès
2006-09-12 18:17             ` Neil Jerram
2006-09-13  8:29               ` Ludovic Courtès
2006-09-13 18:07                 ` Neil Jerram
2006-09-14 15:58                   ` Ludovic Courtès
2006-09-14  0:07             ` Kevin Ryde
2006-09-14 13:22               ` Ludovic Courtès
2006-09-15  0:53                 ` Kevin Ryde
2006-09-15  9:28                   ` Neil Jerram
2006-09-16 13:46                     ` Ludovic Courtès
2006-09-18 23:48                       ` Kevin Ryde
2006-09-19 12:28                         ` Ludovic Courtès
2006-09-19 22:42                           ` Kevin Ryde
2006-09-20 13:21                             ` Ludovic Courtès
2006-09-22 20:02                               ` Neil Jerram
2006-09-25  8:27                                 ` Ludovic Courtès
2006-09-15 12:03                   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r6yodtv3.fsf@laas.fr \
    --to=ludovic.courtes@laas.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).