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: Tue, 12 Sep 2006 11:28:10 +0200	[thread overview]
Message-ID: <877j095t91.fsf@laas.fr> (raw)
In-Reply-To: <87ejun5kj7.fsf@zip.com.au> (Kevin Ryde's message of "Fri, 08 Sep 2006 09:22:52 +1000")

Hi,

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

> ludovic.courtes@laas.fr (Ludovic Courtès) writes:
>>
>> 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,
>
> I'd be surprised if there was a problem in practice, you'd have to
> hope the ctypes were a property of the charset rather than the
> language.

I'm not sure I understand what you mean.  An example to illustrate what
I was trying to say: Both French and Castellano can be written using
Latin-1; however, letter `ñ' (`n' with tilde) is not a French letter
(thus, `isalpha ()' would return false with a Latin-1 `fr_FR' locale)
but it _is_ a letter in Castellano (thus, `isalpha ()' would return true
with a Latin-1 `es_ES', although the charset is the same).  Conversely,
letter `ê' is a letter in French but not in Castellano, and it is part
of Latin-1.

According to SRFI-14, a Latin-1 implementation should contain _both_ `ñ'
and `ê' in `char-set:letter', regardless of the current language
settings, hence the difficulty we might have building `char-set:letter'.

Does that clarify things?

Thanks,
Ludovic.


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


  reply	other threads:[~2006-09-12  9:28 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
2006-09-07 23:22         ` Kevin Ryde
2006-09-12  9:28           ` Ludovic Courtès [this message]
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=877j095t91.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).