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

Chad Leigh -- Shire.Net LLC chad at shire.net
Sat Jun 18 03:36:43 JST 2005


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.net
>
>
> _______________________________________________
> Namazu-users-en mailing list
> Namazu-users-en at namazu.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.net




More information about the Namazu-users-en mailing list