#48098 [Opn->Sus]: ./configure --with-something fails when LANG=et_EE.UTF-8

From: Date: Tue, 28 Apr 2009 17:40:08 +0000
Subject: #48098 [Opn->Sus]: ./configure --with-something fails when LANG=et_EE.UTF-8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-136457@lists.php.net to get a copy of this message
ID: 48098 Updated by: jani@php.net Reported By: paabulaabu at gmail dot com -Status: Open +Status: Suspended Bug Type: Compile Failure Operating System: Ubuntu 9.04 PHP Version: 5.2.9 New Comment: Impossible to fix by PHP (completely) since most of this stuff is produced by autoconf which is 3rd party tool. Report it to the autoconf folks.. Previous Comments: ------------------------------------------------------------------------ [2009-04-28 13:04:08] paabulaabu at gmail dot com Description: ------------ Solution: use [:alpha:] instead a-zA-z in various regular expressions. Bug: :/usr/src/php-5.2.9$ export LANG=et_EE.UTF-8 :/usr/src/php-5.2.9$ ./configure --with-curl configure: error: curl: invalid package name buggy code part in "configure" script: if test -n "echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi bug happens because "Z" isnt the final letter in estonian alphabet. proof of concept in shell: :~$ export LANG=en_GB.UTF-8 :~$ echo abcdefghijklmnopqrstuvõäöüABCDEFGHIJLKMNOPQRSTUVÕÄÖÜ123456789 |sed 's/[-_[:alpha:]0-9]//g' :~$ echo abcdefghijklmnopqrstuvõäöüABCDEFGHIJLKMNOPQRSTUVÕÄÖÜ123456789 |sed 's/[-_a-zA-Z0-9]//g' :~$ export LANG=et_EE.UTF-8 :~$ echo abcdefghijklmnopqrstuvõäöüABCDEFGHIJLKMNOPQRSTUVÕÄÖÜ123456789 |sed 's/[-_a-zA-Z0-9]//g' tuvõäöüTUVÕÄÖÜ :~$ echo abcdefghijklmnopqrstuvõäöüABCDEFGHIJLKMNOPQRSTUVÕÄÖÜ123456789 |sed 's/[-_[:alpha:]0-9]//g' priitp@vidrik:~$ ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48098&edit=1

« previous php.bugs (#136457) next »