Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2002 23:10:59 +0100 (CET)
From:      Tomas Pluskal <plusik@pohoda.cz>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/45460: buildworld fails with Czech locales set
Message-ID:  <20021118230944.W438-100000@localhost.localdomain>

next in thread | raw e-mail | index | archive | help

>Number:         45460
>Category:       misc
>Synopsis:       buildworld fails with Czech locales set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 18 14:20:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tomas Pluskal
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
>Environment:
System: FreeBSD eddie 4.7-STABLE FreeBSD 4.7-STABLE #3: Mon Nov 18 10:27:06 CET 2002 plusik@eddie:/usr/src/sys/compile/PLUSIK i386


>Description:

Buildworld fails with locales set to cs_CZ.ISO8859-2, because in src/usr.bin/getconf it is using awk incorrectly. It is invoking 'awk '/^[_A-Z]/ { print; }'' to list all lines beginning with _ or uppercase letter, but in Czech locale (according to Czech national normative), the order of characters is 'AaBbCc...Zz' (including accented letters). It means the range [A-Z] contains both upper and lower case letters (with exception of lower 'z' and accented Zz).

>How-To-Repeat:
1) Set LC_ALL to cs_CZ.ISO8859-2
2) cd /usr/src/usr.bin/getconf
3) make

The result is:
Name conflicts found!
*** Error code 1


>Fix:

Awk (in Makefile) should use [:upper:], not [A-Z]:
awk '/^[_[:upper:]]/ { print; }'

Perhaps buildworld should automatically unset locales (it is likely that there will be more problems like this).


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021118230944.W438-100000>