the "need" for APACHE_XLATE went away some years ago when BUFF went
POOF and charset recoding (translation) of non-protocol data
could no longer be performed by the core...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101894
13f79535-47bb-0310-9956-
ffa450edef68
#define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
#endif
-#if APR_CHARSET_EBCDIC && !defined(APACHE_XLATE)
-#define APACHE_XLATE
-#endif
-
#endif /* AP_CONFIG_H */
#ifndef APACHE_UTIL_CHARSET_H
#define APACHE_UTIL_CHARSET_H
-#ifdef APACHE_XLATE
-
#ifdef __cplusplus
extern "C" {
#endif
/**
* @package charset conversion
*/
+#include "apr.h"
+
+#if APR_CHARSET_EBCDIC
+
#include "apr_xlate.h"
/** On EBCDIC machine this is a translation handle used to translate the
* headers from ASCII to the local machine format after network transmission.
* On an ASCII machine this is NULL */
extern apr_xlate_t *ap_hdrs_from_ascii;
-/** On EBCDIC machine this is a translation handle used to translate the
- * content from the local machine format to ASCII for network transmission.
- * On an ASCII machine this is NULL */
-extern apr_xlate_t *ap_locale_to_ascii;
-/** On EBCDIC machine this is a translation handle used to translate the
- * content from ASCII to the local machine format after network transmission.
- * On an ASCII machine this is NULL */
-extern apr_xlate_t *ap_locale_from_ascii;
+#endif /* APR_CHARSET_EBCDIC */
+
#ifdef __cplusplus
}
#endif
-#endif /* APACHE_XLATE */
-
#endif /* !APACHE_UTIL_CHARSET_H */
printf(" -D APR_CHARSET_EBCDIC\n");
#endif
-#ifdef APACHE_XLATE
- printf(" -D APACHE_XLATE\n");
-#endif
-
#ifdef NEED_HASHBANG_EMUL
printf(" -D NEED_HASHBANG_EMUL\n");
#endif
#include "ap_config.h"
-#ifdef APACHE_XLATE
+#if APR_CHARSET_EBCDIC
#include "httpd.h"
#include "http_log.h"
apr_xlate_t *ap_hdrs_to_ascii, *ap_hdrs_from_ascii;
-/* ap_locale_to_ascii, ap_locale_from_ascii
- *
- * These handles are used for the translation of content, unless a
- * configuration module overrides them.
- *
- * For an EBCDIC machine, these are valid handles which are set up at
- * initialization to translate between ISO-8859-1 and the code page of
- * the httpd process's locale.
- *
- * For an ASCII machine, these remain NULL so that no translation is
- * performed (unless a configuration module does something, of course).
- */
-
-apr_xlate_t *ap_locale_to_ascii, *ap_locale_from_ascii;
-
-#endif /*APACHE_XLATE*/
+#endif /*APR_CHARSET_EBCDIC */
return rv;
}
- rv = apr_xlate_open(&ap_locale_to_ascii, "ISO8859-1", APR_LOCALE_CHARSET, pool);
- if (rv) {
- ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL,
- "apr_xlate_open() failed");
- return rv;
- }
-
- rv = apr_xlate_open(&ap_locale_from_ascii, APR_LOCALE_CHARSET, "ISO8859-1", pool);
- if (rv) {
- ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL,
- "apr_xlate_open() failed");
- return rv;
- }
-
rv = apr_MD5InitEBCDIC(ap_hdrs_to_ascii);
if (rv) {
ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL,