bug in hPutPS

Simon Marlow simonmar@microsoft.com
Wed, 23 Apr 2003 11:28:32 +0100


=20
> In local.libraries, you wrote:
> > hPutPS (at least as packaged in ghc 5.04.2--I haven't yet tried with
> > 5.04.3) fails when given an empty string with the error:
> >=20
> > Action: hPutArray
> > Handle: =
{loc=3D<stdout>,type=3Dwritable,binary=3DFalse,buffering=3Dnone}
> > Reason: illegal buffer size 0
> >=20
> > I guess maybe this is actually a bug in hPutArray (which I=20
> know nothing
> > about), but I'm sure that one should be able to output an=20
> empty string.
>=20
> hPutArray with count =3D 0 probably shouldn't fail, I'll check this.
> If generating an empty array in hPutPS is a bug I cannot tell.

I just fixed this.

Cheers,
	Simon