From owner-freebsd-stable@FreeBSD.ORG Fri Feb 3 23:07:13 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 386CA16A420 for ; Fri, 3 Feb 2006 23:07:13 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from smtp104.biz.mail.re2.yahoo.com (smtp104.biz.mail.re2.yahoo.com [206.190.52.173]) by mx1.FreeBSD.org (Postfix) with SMTP id 9F23E43D55 for ; Fri, 3 Feb 2006 23:07:05 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 64211 invoked from network); 3 Feb 2006 23:07:04 -0000 Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@24.99.22.177 with login) by smtp104.biz.mail.re2.yahoo.com with SMTP; 3 Feb 2006 23:07:04 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id EA7056115; Fri, 3 Feb 2006 18:07:03 -0500 (EST) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10517-11; Fri, 3 Feb 2006 18:07:03 -0500 (EST) Received: from [127.0.0.1] (optimator [192.168.1.11]) by optimator.noacks.org (Postfix) with ESMTP id E19FD60F3; Fri, 3 Feb 2006 18:07:02 -0500 (EST) Message-ID: <43E3E25A.1040208@alumni.rice.edu> Date: Fri, 03 Feb 2006 18:08:10 -0500 From: Jonathan Noack User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Martin References: <43E3B356.7030203@nurfuerspam.de> In-Reply-To: <43E3B356.7030203@nurfuerspam.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at noacks.org Cc: stable@freebsd.org Subject: Re: tr(1) buggy with de_DE.ISO8859-1(5) locale? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 23:07:13 -0000 Martin wrote: > There is a quite nasty bug in tr(1) when using > de_DE.ISO8859-1(5) locale. > > Try this please: > unsetenv LC_ALL > setenv LANG de_DE.ISO8859-1 > echo v | tr a-z A-Z > > I'm getting "W" as result. Shouldn't it be "V"? (Unexpected behavior explained elsewhere in the thread.) The correct way to change lower-case to upper-case is as follows: echo v | tr "[:lower:]" "[:upper:]" See tr(1) for more info. -Jonathan