[plt-scheme] equal strings aren't equal

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue May 24 15:11:53 EDT 2005

I suspect there's something else going wrong, somewhere. Perhaps you
can try to make a small, complete program that behaves strangely and we
might be able to help more.


At Tue, 24 May 2005 15:59:12 -0300, Andrey Skylar wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> I'm using mime-get-bindings to get bindings from a multipart form.  In
> that form there is a field
> <input name="act" type="hidden" value="doit">
> I then have some code like this:
> (let* ([b (mime-get-bindings)]
>         [act (extract-binding/single "act" b)])
>   (cond
>      [(string=? act "view") ...]
>      [(string=? act "doit") ...]
>      [else *generate-error-page*]))
> except that the test always fails for "doit", but always works for
> "view".  Anybody know why?
> -Andrey

Posted on the users mailing list.