From plusik@pohoda.cz  Mon Nov 18 14:11:02 2002
Return-Path: <plusik@pohoda.cz>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 802B737B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 14:11:02 -0800 (PST)
Received: from pohoda.cz (pohoda.pohoda.cz [194.228.111.151])
	by mx1.FreeBSD.org (Postfix) with SMTP id 0918343E91
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 14:11:01 -0800 (PST)
	(envelope-from plusik@pohoda.cz)
Received: (qmail 25514 invoked from network); 18 Nov 2002 22:11:07 -0000
Received: from plusik@pohoda.cz by pohoda.cz by uid 513 with qmail-scanner-1.15 
 ( Clear:. 
 Processed in 0.051769 secs); 18 Nov 2002 22:11:07 -0000
Received: from saturn.netcore.cz (HELO localhost.localdomain) (212.67.74.6)
  by pohoda.pohoda.cz with SMTP; 18 Nov 2002 22:11:07 -0000
Received: by localhost.localdomain (Postfix, from userid 1000)
	id 1E0061CB9C5; Mon, 18 Nov 2002 23:10:59 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by localhost.localdomain (Postfix) with ESMTP id 1C1C31CB99F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 18 Nov 2002 23:10:59 +0100 (CET)
Message-Id: <20021118230944.W438-100000@localhost.localdomain>
Date: Mon, 18 Nov 2002 23:10:59 +0100 (CET)
From: Tomas Pluskal <plusik@pohoda.cz>
To: FreeBSD-gnats-submit@freebsd.org
Subject: buildworld fails with Czech locales set

>Number:         45460
>Category:       misc
>Synopsis:       buildworld fails with Czech locales set
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 18 14:20:00 PST 2002
>Closed-Date:    Mon Nov 25 01:07:42 PST 2002
>Last-Modified:  Mon Nov 25 01:07:42 PST 2002
>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:
Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: ru 
Responsible-Changed-When: Sat Nov 23 10:25:37 PST 2002 
Responsible-Changed-Why:  
With the fixed awk(1) in -CURRENT, this PR equally applies here. 
Once I get the permission from re@, I will commit the fix. 

Resetting locale at buildworld isn't an option, because standalone 
builds should also work. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45460 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon Nov 25 01:06:46 PST 2002 
State-Changed-Why:  
Fixed in 5.0-CURRENT (src/usr.bin/getconf/Makefile,v 1.4) 
and 4.7-STABLE (src/usr.bin/getconf/Makefile,v 1.3.2.2). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45460 
>Unformatted:
