From: Petter Larsson XA (LI/EAB) <petter.larsson@er...> - 2004-12-29 15:07:12
I had trouble using Yaws on Solaris.
When trying to set cookies all pages broke.
The reason was that a new line was added below contents-type headers, before the set-cookie header, so the set-cookie header was parsed as a part of the webpage.
The reason for this was this line in yaws/src/Makefile:
54 echo -n $(DEFAULT_CHARSET) > charset.def
The "-n" option is missing in /bin/sh on Solaris, this gives a "-n" in the file charset.def (with a new line).
The mime_type_c.erl that creates the mime_types.erl then adds the types with a suffix: ";charset=-n\n", and this will create an extra new line.
One way to fix this is by using printf instead, like this:
54 printf ""$(DEFAULT_CHARSET) > charset.def
Best of wishes