Subject: printf troubles
To: None <current-users@netbsd.org>
From: Jukka Salmi <j+nbsd@2005.salmi.ch>
List: current-users
Date: 03/22/2005 23:09:12
Hello,

I'm having a problem with both /usr/bin/printf and /bin/sh builtin
printf on a current (3.99.1, todays sources) system: %b format doesn't
print characters '\000' through '\099' correctly. This works fine on a
netbsd-2 system.

$ uname -sr
NetBSD 3.99.1
$ printf '%b' '\010' | od -c
0000000    I   1   0
0000003

$ uname -sr
NetBSD 2.0_STABLE
$ printf '%b' '\010' | od -c
0000000   \b
0000001

Characters >= '\100' are printed correctly.

I noticed this after updating the system today (XFree86 4.4.0 -> 4.5.0
et al.), but I'm not sure when it worked last.

Any hints?


TIA, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~