aboutsummaryrefslogtreecommitdiffstats
path: root/enc/ebcdic.h
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 13:11:31 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-14 13:11:31 +0000
commit83304b75c17b5126c8e8448f2cc08350146157d0 (patch)
treeecfc6fb7163b13c09a14af1c0b462eae79f125c9 /enc/ebcdic.h
parent059c9c1cf371e049c7481c78b76e9620da52757f (diff)
downloadruby-83304b75c17b5126c8e8448f2cc08350146157d0.tar.gz
* enc/ebcdic.h: new dummy encoding EBCDIC-US
* enc/trans/ebcdic.trans: transcodings between EBCDIC-US and iso-8859-1 [with code from Andrea Ribuoli] * test/ruby/test_transcode.rb: tests for above * tool/transcode_tablegen.rb: additional argument for method transcode_tblgen git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/ebcdic.h')
-rw-r--r--enc/ebcdic.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/enc/ebcdic.h b/enc/ebcdic.h
new file mode 100644
index 0000000000..ca984315ee
--- /dev/null
+++ b/enc/ebcdic.h
@@ -0,0 +1,10 @@
+#include "regenc.h"
+/* dummy for unsupported, non-ascii-based encoding */
+ENC_DUMMY("EBCDIC-US");
+
+/* we start with just defining a single EBCDIC encoding,
+ * hopefully the most widely used one.
+ *
+ * See http://www.iana.org/assignments/character-sets/character-sets.xhtml
+ * http://tools.ietf.org/html/rfc1345
+ */