Email List: Xaustin-review-lX
[All Lists]

Defect in XCU tr

To: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Defect in XCU tr
From: yyy@xxxxxxxxxxx
Date: Tue, 29 Jun 2004 08:16:01 +0100 (BST)
        Defect report from : Tim Robbins , The FreeBSD Project

(Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)

@ page 932 line 36139 section tr editorial {tjr3}

Problem:

Edition of Specification (Year): 2004

Defect code :  1. Error

XCU lines 36139-36143 state:

The ISO POSIX-2:1993 standard had a -c option that behaved similarly to the -C 
option, but did not supply functionality equivalent to the -c option specified 
in IEEE Std 1003.1-2001. This meant that historical practice of being able to 
specify tr -d\200-\377 (which would delete all bytes with the top bit set) 
would have no effect because, in the C locale, bytes with the values octal 200 
to octal 377 are not characters.

The example given (tr -d \200-\377) does not make sense in the context it is 
used in since it does not use either the -c or -C option.

(It also looks like a space is missing between -d and the following argument.)

Action:

Consider changing the example to tr -cd \000-\177

<Prev in Thread] Current Thread [Next in Thread>