[libxml2] Try IBM-037 when looking for EBCDIC handlers
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Try IBM-037 when looking for EBCDIC handlers
- Date: Wed, 12 Dec 2012 07:42:38 +0000 (UTC)
commit 6f49c73b53facc1c22c82dc2599f4a24bb7141b5
Author: Petr Sumbera <petr sumbera oracle com>
Date: Wed Dec 12 15:41:30 2012 +0800
Try IBM-037 when looking for EBCDIC handlers
http://en.wikipedia.org/wiki/EBCDIC_037
as it is another variat of EBCDIC
encoding.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/encoding.c b/encoding.c
index 87b1d9b..7275ffd 100644
--- a/encoding.c
+++ b/encoding.c
@@ -1517,6 +1517,8 @@ xmlGetCharEncodingHandler(xmlCharEncoding enc) {
if (handler != NULL) return(handler);
handler = xmlFindCharEncodingHandler("EBCDIC-US");
if (handler != NULL) return(handler);
+ handler = xmlFindCharEncodingHandler("IBM-037");
+ if (handler != NULL) return(handler);
break;
case XML_CHAR_ENCODING_UCS4BE:
handler = xmlFindCharEncodingHandler("ISO-10646-UCS-4");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]