Author: gregames
Date: Fri Jul 22 18:44:37 2011
New Revision: 1149692
URL: http://svn.apache.org/viewvc?rev=1149692&view=rev
Log:
z/OS iconv uses ISO charset names with only one dash, e.g. ISO8859-1
Modified:
apr/apr/trunk/xlate/xlate.c
Modified: apr/apr/trunk/xlate/xlate.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/xlate/xlate.c?rev=1149692&r1=1149691&r2=1149692&view=diff
==============================================================================
--- apr/apr/trunk/xlate/xlate.c (original)
+++ apr/apr/trunk/xlate/xlate.c Fri Jul 22 18:44:37 2011
@@ -69,6 +69,11 @@ static const char *handle_special_names(
else if (page == APR_LOCALE_CHARSET) {
return apr_os_locale_encoding(pool);
}
+#ifdef __MVS__
+ else if (!strcasecmp(page, "ISO-8859-1")) {
+ return "ISO8859-1"; /* z/OS ASCII name has no dash after ISO */
+ }
+#endif
else {
return page;
}
|