broken wchar'd rev(1)

From: FUJISHIMA Satsuki <sf_at_FreeBSD.org>
Date: Sat, 07 Aug 2004 01:27:10 +0900
in -CURRENT of 2004.08.03.22.37.09(from src-all/checkouts.cvs:.),

rev(1) output is incorrect.
Pay attention please to 0x00 before every newline.
This does not occur on 4-STABLE and rev.c 1.6.

/usr/src$ env - PATH=/bin:/usr/bin sh -c "ls|rev|hd"
00000000  54 48 47 49 52 59 50 4f  43 00 0a 53 52 45 4e 49  |THGIRYPOC..SRENI|
00000010  41 54 4e 49 41 4d 00 0a  65 6c 69 66 65 6b 61 4d  |ATNIAM..elifekaM|
00000020  00 0a 31 63 6e 69 2e 65  6c 69 66 65 6b 61 4d 00  |..1cni.elifekaM.|
00000030  0a 45 4d 44 41 45 52 00  0a 47 4e 49 54 41 44 50  |.EMDAER..GNITADP|
00000040  55 00 0a 54 54 42 34 36  2e 47 4e 49 54 41 44 50  |U..TTB46.GNITADP|
00000050  55 00 0a 6e 69 62 00 0a  62 69 72 74 6e 6f 63 00  |U..nib..birtnoc.|
00000060  0a 6f 74 70 79 72 63 00  0a 63 74 65 00 0a 73 65  |.otpyrc..cte..se|
00000070  6d 61 67 00 0a 75 6e 67  00 0a 65 64 75 6c 63 6e  |mag..ung..edulcn|
00000080  69 00 0a 6b 77 65 6e 5f  64 6c 72 6f 77 6c 6c 61  |i..kwen_dlrowlla|
00000090  74 73 6e 69 00 0a 6b 64  6c 6f 5f 64 6c 72 6f 77  |tsni..kdlo_dlrow|
000000a0  6c 6c 61 74 73 6e 69 00  0a 35 73 6f 72 65 62 72  |llatsni..5sorebr|
000000b0  65 6b 00 0a 62 69 6c 00  0a 63 65 78 65 62 69 6c  |ek..bil..cexebil|
000000c0  00 0a 65 73 61 65 6c 65  72 00 0a 65 75 63 73 65  |..esaeler..eucse|
000000d0  72 00 0a 6e 69 62 73 00  0a 65 72 75 63 65 73 00  |r..nibs..eruces.|
000000e0  0a 65 72 61 68 73 00 0a  73 79 73 00 0a 73 6c 6f  |.erahs..sys..slo|
000000f0  6f 74 00 0a 6e 69 62 2e  72 73 75 00 0a 6e 69 62  |ot..nib.rsu..nib|
00000100  73 2e 72 73 75 00 0a                              |s.rsu..|
00000107
Received on Fri Aug 06 2004 - 14:27:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:05 UTC