Try testing vec on chr(0) instead.
In reply to Re: bits, vec(), zero, and unpack weirdness by bart in thread bits, vec(), zero, and unpack weirdness by Anonymous Monk