bug-autoconf
[Top][All Lists]
Advanced

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

Re: ./configure --with-something fails when LANG=et_EE.UTF-8


From: Ralf Wildenhues
Subject: Re: ./configure --with-something fails when LANG=et_EE.UTF-8
Date: Thu, 30 Apr 2009 06:52:55 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Priit,

please keep the mailing list in Cc:, thanks.

* Priit Pääsukene wrote on Wed, Apr 29, 2009 at 10:39:11AM CEST:
> > Which Autoconf version was the configure script created with?
> 
> not 100% sure, but configure script contains

Just run
  ./configure --version

it should tell you.

> # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
> ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
> ## Free Software Foundation, Inc
> 
> # autoconf 2.13 compatibility

This bit is macro code from Libtool, it doesn't really tell you about
the Autoconf version you use.

> >> Solution: use [:alpha:] instead a-zA-z in various regular expressions.
> >
> > No, sorry; these classes are unfortunately not portable enough yet.  The
> > configure script already sets LANGUAGE and LC_ALL to sane values.  If
> > that is not sufficient, then I suppose we need to set LANG, too.  What
> > system does this happen on, which sed version, and why does it not honor
> > LC_ALL=C?
> 
> I experienced it under Ubuntu 9.04, but earlier versions of ubuntu are
> also affected.
> 
> bash is:
> GNU bash, version 3.2.48(1)-release (i486-pc-linux-gnu)
> 
> from shell the system honors LANG, LANGUAGE and LC_ALL variables:
> 
> address@hidden:~$ export LANG=et_EE.UTF-8
> address@hidden:~$ echo abcdefghijklmnopqrsztuvwxy | egrep "^[a-z]+$"
> address@hidden:~$ export LANG=C
> address@hidden:~$ echo abcdefghijklmnopqrsztuvwxy | egrep "^[a-z]+$"
> abcdefghijklmnopqrsztuvwxy
> address@hidden:~$ set |grep LC_ALL
> address@hidden:~$ export LANG=et_EE.UTF-8
> address@hidden:~$ export LC_ALL=C
> address@hidden:~$ echo abcdefghijklmnopqrsztuvwxy | egrep "^[a-z]+$"
> abcdefghijklmnopqrsztuvwxy
> address@hidden:~$

This tests the egrep program, but not really the shell, and neither the
sed program, which is what caused the issues you reported previously.

> in configure script generated by autoconf, the LANG and LC_ALL
> variables are set to C, but too late -
> 
> on line 2066:
> if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
> if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
> 
> first regex comparisions are made on line 50, when LANG/LC_ALL
> variables are in the default state.

I don't think this particular text ever came from Autoconf at all.

> I'm attaching the generated configure script. hope it helps.

You didn't do that, but that was a good idea.  I'm not too interested in
the whole configure contents.

Cheers,
Ralf




reply via email to

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