Bug 62047

Summary: Fix for non-C LC_COLLATE
Product: Base System Reporter: Mark Daniel Reidel <ports>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.2-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
tr.patch none

Description Mark Daniel Reidel 2004-01-28 22:10:19 UTC
It's impossible to make a buildworld when using LC_COLLATE other than C, because of tr '[a-z]' '[A-Z]' not leading to capitalization of a string. The attached patch fixes this by using the POSIXly correct '[:lower:]' '[:upper:]' instead which will work on just any locale-setting.

How-To-Repeat: cd /usr/src; /usr/bin/env LC_COLLATE=de_DE.ISO8859-15 make buildworld
Comment 1 Андрей Чернов 2004-01-29 02:32:52 UTC
It should work in 5.*, no patches required. Your patch does nothing.
Do you miss LC_ALL=C before tr?
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2004-01-31 19:16:38 UTC
State Changed
From-To: open->patched

Fixed in rev.1.50 setlocale.c
Comment 3 Andrey A. Chernov freebsd_committer freebsd_triage 2004-01-31 21:50:26 UTC
State Changed
From-To: patched->closed

MFCed