From owner-cvs-all@FreeBSD.ORG Sat Aug 2 19:23:40 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04CBE37B401; Sat, 2 Aug 2003 19:23:40 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A730B43FA3; Sat, 2 Aug 2003 19:23:39 -0700 (PDT) (envelope-from ache@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h732Nd0U057039; Sat, 2 Aug 2003 19:23:39 -0700 (PDT) (envelope-from ache@repoman.freebsd.org) Received: (from ache@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h732NdVH057038; Sat, 2 Aug 2003 19:23:39 -0700 (PDT) Message-Id: <200308030223.h732NdVH057038@repoman.freebsd.org> From: "Andrey A. Chernov" Date: Sat, 2 Aug 2003 19:23:39 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/tr extern.h str.c tr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Aug 2003 02:23:40 -0000 ache 2003/08/02 19:23:39 PDT FreeBSD src repository Modified files: usr.bin/tr extern.h str.c tr.c Log: This patch address two problems. 1st one is relatively minor: according our own manpage, upper and lower classes must be sorted, but currently not. 2nd one is serious: tr '[:lower:]' '[:upper:]' (and vice versa) currently works only if upper and lower classes have exact the same number of elements. When it is not true, like for many ISO8859-x locales which have bigger amount of lowercase letters, tr may do nasty things. See this page http://www.opengroup.org/onlinepubs/007908799/xcu/tr.html for detailed description of desired tr behaviour in such cases. Revision Changes Path 1.6 +4 -1 src/usr.bin/tr/extern.h 1.17 +12 -2 src/usr.bin/tr/str.c 1.17 +54 -17 src/usr.bin/tr/tr.c