aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2018-12-04 20:27:20 +0200
committerEli Zaretskii2018-12-04 20:27:20 +0200
commit6d898918980be4cb29a182ecde7f8e1f95a08462 (patch)
tree9ea7ecd30d2da56222015413a85433d9aed53e29 /lisp
parent8e28aee6647ec23e8b0e45f78de2f60cb416b106 (diff)
downloademacs-6d898918980be4cb29a182ecde7f8e1f95a08462.tar.gz
emacs-6d898918980be4cb29a182ecde7f8e1f95a08462.zip
Support IBM038 (a.k.a. "EBCDIC-INT") encoding
* lisp/international/mule-conf.el (ibm038): New charset. (ebcdic-int, cp038): Alias charsets of ibm038. * lisp/language/english.el (ibm038): New coding-system. (ebcdic-int, cp038): Alias coding-systems of ibm038. (Bug#33612) * etc/NEWS: Announce the new coding system ibm038.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/international/mule-conf.el9
-rw-r--r--lisp/language/english.el8
2 files changed, 17 insertions, 0 deletions
diff --git a/lisp/international/mule-conf.el b/lisp/international/mule-conf.el
index b08150a1499..02323ea479e 100644
--- a/lisp/international/mule-conf.el
+++ b/lisp/international/mule-conf.el
@@ -1066,6 +1066,15 @@
1066 :mime-charset 'ebcdic-uk 1066 :mime-charset 'ebcdic-uk
1067 :map "EBCDICUK") 1067 :map "EBCDICUK")
1068 1068
1069(define-charset 'ibm038
1070 "International version of EBCDIC"
1071 :short-name "IBM038"
1072 :code-space [0 255]
1073 :mime-charset 'ibm038
1074 :map "IBM038")
1075(define-charset-alias 'ebcdic-int 'ibm038)
1076(define-charset-alias 'cp038 'ibm038)
1077
1069(define-charset 'ibm1047 1078(define-charset 'ibm1047
1070 ;; Says groff: 1079 ;; Says groff:
1071 "IBM1047, `EBCDIC Latin 1/Open Systems' used by OS/390 Unix." 1080 "IBM1047, `EBCDIC Latin 1/Open Systems' used by OS/390 Unix."
diff --git a/lisp/language/english.el b/lisp/language/english.el
index 72a85eb1088..d3fdbfed200 100644
--- a/lisp/language/english.el
+++ b/lisp/language/english.el
@@ -62,6 +62,14 @@ Nothing special is needed to handle English.")
62 :mnemonic ?*) 62 :mnemonic ?*)
63(define-coding-system-alias 'cp1047 'ibm1047) 63(define-coding-system-alias 'cp1047 'ibm1047)
64 64
65(define-coding-system 'ibm038
66 "International version of EBCDIC"
67 :coding-type 'charset
68 :charset-list '(ibm038)
69 :mnemonic ?*)
70(define-coding-system-alias 'ebcdic-int 'ibm038)
71(define-coding-system-alias 'cp038 'ibm038)
72
65;; Make "ASCII" an alias of "English" language environment. 73;; Make "ASCII" an alias of "English" language environment.
66(set-language-info-alist 74(set-language-info-alist
67 "ASCII" (cdr (assoc "English" language-info-alist))) 75 "ASCII" (cdr (assoc "English" language-info-alist)))