namazu-users-en
[Top] [All Lists]

[Namazu-users-en] Re: some queries failing (cgi)

2005-06-17 11:36:49

On Jun 17, 2005, at 12:08 PM, Chad Leigh -- Shire.Net LLC wrote:


I don't know if this is a valid test or not, but I went in to namazu-
cgi.c and added a line

     if (localedir != NULL) {
         bindtextdomain(PACKAGE, localedir);
     } else {
         bindtextdomain(PACKAGE, LOCALEDIR);
     }
     textdomain(PACKAGE);



         freopen("cgi_output", "w", stdout);

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

In looking at the other code, it appeared that stdout was used as the
output of the cgi back to apache and I wanted to capture that instead
of sending it back.

If this is valid, and it appears to be since I can run the cgi with a
known good query and the file captures all the http headers and html
that apache gets, the file is empty when run with a known bad query.

More as it develops.

Thanks to some printf() style debugging

it is dying on the line

                     char *converted = nmz_codeconv_external(query);

in printf_headfoot()

in

form.c

Will report more when I see what is going on.

Chad


Chad


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad(_at_)shire(_dot_)net


_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en


---
Chad Leigh -- Shire.Net LLC
Your Web App and Email hosting provider
chad(_at_)shire(_dot_)net


_______________________________________________
Namazu-users-en mailing list
Namazu-users-en(_at_)namazu(_dot_)org
http://www.namazu.org/cgi-bin/mailman/listinfo/namazu-users-en

<Prev in Thread] Current Thread [Next in Thread>