[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-ed] [PATCH] configure: respect user env settings
From: |
Claudio Fontana |
Subject: |
Re: [Bug-ed] [PATCH] configure: respect user env settings |
Date: |
Sat, 3 Jan 2009 13:09:31 +0100 |
On Sat, Jan 3, 2009 at 11:16 AM, Antonio Diaz Diaz <address@hidden> wrote:
> Mike Frysinger wrote:
>>
>> First we have to fix the locale otherwise some of the arg parsing may
>> fail.
>
> ...
>>
>> +LC_ALL=C
>
> I suppose ed itself should also use the C locale, otherwise ed scripts using
> regular expressions may fail.
I think ed should do what every other package is doing, ie something
along the lines of
#ifdef HAVE_SETLOCALE
setlocale (LC_ALL, "");
#endif
#ifdef ENABLE_NLS
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
#endif
The regular expressions at runtime should adapt automagically to the locale set.
The unix regex.h API (regcomp, regexec) already works this way, so
since ed uses regex.h it should just work.
- Re: [Bug-ed] [PATCH] configure: respect user env settings, (continued)
Re: [Bug-ed] [PATCH] configure: respect user env settings, Karl Berry, 2009/01/01
Re: [Bug-ed] [PATCH] configure: respect user env settings, Antonio Diaz Diaz, 2009/01/03
Re: [Bug-ed] [PATCH] configure: respect user env settings,
Claudio Fontana <=