[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: frozen!

From: Ludovic Courtès
Subject: Re: frozen!
Date: Wed, 07 Oct 2009 00:25:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Ken Raeburn <address@hidden> writes:

> On Oct 6, 2009, at 17:35, Mike Gran wrote:
>> I need to roll back the changes made to i18n.c
>> that made locale-specific case conversion of strings
>> work on GNU but break on Darwin.  Locale-specific
>> case conversion of strings works, but only when
>> the locale is set using setlocale.
> Thanks.  Though perhaps you could just explicitly test for GNU libc,
> if the glibc structures are stable?

There's no reason why they should be stable, they're internal.  Glibc's
<xlocale.h> reads:

--8<---------------cut here---------------start------------->8---
/* Structure for reentrant locale using functions.  This is an
   (almost) opaque type for the user level programs.  The file and
   this data structure is not standardized.  Don't rely on it.  It can
   go away without warning.  */
typedef struct __locale_struct
--8<---------------cut here---------------end--------------->8---

Maybe, until a better solution is found we could use:

  AC_CHECK_MEMBER([struct __locale_struct.__name] ...)

But we should aim for a more robust solution.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]