I compiled es for Solaris 2.3 with no modification to the source (that is, except for the addition of math and regexp support, which ought to be irrelevant to your problem). Maybe it's a compiler problem. Try to turn off optimization and see if it still gives wrong results. - Harald