Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2003 19:23:39 -0700 (PDT)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/tr extern.h str.c tr.c
Message-ID:  <200308030223.h732NdVH057038@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308030223.h732NdVH057038>