Menu

#260 Ns_GetTypeEncoding no longer uses OutputCharset

aolserver_v41
open
nobody
API: C (24)
5
2005-12-24
2005-12-24
No

Here's one of a few problems I ran into while trying to
install OpenACS on a recent AOLserver CVS checkout.

ns_startcontent -type text/html is returning the error:
no encoding for type "text/html"

In encoding.c, the documentation for Ns_GetTypeEncoding
says, "This function will utilize the
ns/parameters/OutputCharset config parameter if given a
content-type "text/<anything>" with no charset. (I do
have OutputCharset defined in my config file.)

However, this appears to no longer be the case. If
there is no charset specified in the type parameter,
Ns_FindCharset and thus Ns_GetTypeEncoding return NULL.

I believe this bug was introduced in encoding.c
revision 1.16, on 24 March 2005, and so isn't in 4.0.10.

Discussion


Log in to post a comment.