]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Allow generated pages such as mod_autoindex to be translated as well on platforms
authorBradley Nicholes <bnicholes@apache.org>
Fri, 7 Nov 2003 18:59:08 +0000 (18:59 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Fri, 7 Nov 2003 18:59:08 +0000 (18:59 +0000)
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

modules/experimental/NWGNUcharsetl
modules/experimental/mod_charset_lite.c

index 6136c416a90ed3957bcad9734c0cb73cfd11b08a..e6b37ff25b9c0c665bb24a1661c2b0c6cda0bfd2 100644 (file)
@@ -42,6 +42,7 @@ XCFLAGS               += \
 # These defines will come after DEFINES
 #
 XDEFINES       += \
+       -DAP_WANT_DIR_TRANSLATION \
                        $(EOLIST)
 
 #
index 8450af98b79a949aa28fbcf03b173d5ed7d7659b..08f16ff11e8b8e018e167983ad3040dd019e0299 100644 (file)
@@ -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.
          *