From owner-freebsd-questions@freebsd.org Sun Nov 1 17:16:28 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 20DACA23666 for ; Sun, 1 Nov 2015 17:16:28 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE83A143C for ; Sun, 1 Nov 2015 17:16:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [93.104.15.143] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1ZsvXa-0004uZ-CI; Sun, 01 Nov 2015 17:31:34 +0100 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id tA1GVW1i001938 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 1 Nov 2015 17:31:32 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id tA1GVVpU001937; Sun, 1 Nov 2015 17:31:31 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 1 Nov 2015 17:31:31 +0100 From: Matthias Apitz To: Christian Weisgerber Cc: freebsd-questions@freebsd.org Subject: Re: tr(1) and LANG=de_DE.UTF-8 Message-ID: <20151101163131.GB1901@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Christian Weisgerber , freebsd-questions@freebsd.org References: <20151029103133.GA16882@sh4-5.1blu.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.15.143 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Nov 2015 17:16:28 -0000 El día Sunday, November 01, 2015 a las 04:21:25PM +0000, Christian Weisgerber escribió: > On 2015-10-29, Matthias Apitz wrote: > > > I know that the man page of tr(1) contains a hint about the LANG and > > environment(7), but would not expect that this means that I can't change > > a single byte, octal given value, only for the reason that \357 is not a valid > > Unicode code point. > > > > Any ideas/comments on this? > > POSIX jabbers something about "multi-character collating elements", > which seems related, but I don't understand it. I think, the truth is (as always) in the man page, which reads from tr(1): ... In the first synopsis form, the characters in string1 are translated into the characters in string2 ... i.e. it speaks about 'characters' and not 'bytes' and the char given by me was not a valid UTF-8 character. matthias -- Matthias Apitz, ✉ guru@unixarea.de, 🌐 http://www.unixarea.de/ ☎ +49-176-38902045