[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

  setlocale (LC_ALL, "");
  bindtextdomain (PACKAGE, LOCALEDIR);
  textdomain (PACKAGE);

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.

reply via email to

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