From: Bradley Nicholes Date: Fri, 7 Nov 2003 18:59:08 +0000 (+0000) Subject: Allow generated pages such as mod_autoindex to be translated as well on platforms X-Git-Tag: 2.0.49~392 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34aa18e568001da15426a26d1fbcd8d602893df2;p=thirdparty%2Fapache%2Fhttpd.git Allow generated pages such as mod_autoindex to be translated as well on platforms that support charsets other than just EBCDIC git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101718 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/NWGNUcharsetl b/modules/experimental/NWGNUcharsetl index 6136c416a90..e6b37ff25b9 100644 --- a/modules/experimental/NWGNUcharsetl +++ b/modules/experimental/NWGNUcharsetl @@ -42,6 +42,7 @@ XCFLAGS += \ # These defines will come after DEFINES # XDEFINES += \ + -DAP_WANT_DIR_TRANSLATION \ $(EOLIST) # diff --git a/modules/experimental/mod_charset_lite.c b/modules/experimental/mod_charset_lite.c index 8450af98b79..08f16ff11e8 100644 --- a/modules/experimental/mod_charset_lite.c +++ b/modules/experimental/mod_charset_lite.c @@ -286,7 +286,7 @@ static int find_code_page(request_rec *r) */ if (strncasecmp(mime_type, "text/", 5) && -#if APR_CHARSET_EBCDIC +#if APR_CHARSET_EBCDIC || AP_WANT_DIR_TRANSLATION /* On an EBCDIC machine, be willing to translate mod_autoindex- * generated output. Otherwise, it doesn't look too cool. *