[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] add support for ibm278
From: |
Timo Myyrä |
Subject: |
[patch] add support for ibm278 |
Date: |
Thu, 24 Dec 2020 17:39:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (berkeley-unix) |
Hi,
In recent history I had to check file from our customer which was
showing gibberish. It seems emacs is missing few defines in order to use
ibm278 encoding. There already seems to be charset map for ibm278 in
etc/charsets so emacs is only missing few defines in order to use ibm278
encoding:
add support for ebcdic code page ibm278 for finnish/swedish
there was already charset file present in etc/charsets but it wasn't
hooked to mule. This defines charset and coding system to use ibm278
with emacs.
2 files changed, 13 insertions(+)
lisp/international/mule-conf.el | 7 +++++++
lisp/language/european.el | 6 ++++++
modified lisp/international/mule-conf.el
@@ -1075,6 +1075,13 @@ 'ibm038
(define-charset-alias 'ebcdic-int 'ibm038)
(define-charset-alias 'cp038 'ibm038)
+(define-charset 'ibm278
+ "Finnish/swedish version of EBCDIC"
+ :short-name "IBM038"
+ :code-space [0 255]
+ :mime-charset 'ibm278
+ :map "IBM278")
+
(define-charset 'ibm1047
;; Says groff:
"IBM1047, `EBCDIC Latin 1/Open Systems' used by OS/390 Unix."
modified lisp/language/european.el
@@ -324,6 +324,12 @@ 'windows-1257
:mime-charset 'windows-1257)
(define-coding-system-alias 'cp1257 'windows-1257)
+(define-coding-system 'ibm278
+ "Finnish/Swedish version of EBCDIC"
+ :coding-type 'charset
+ :charset-list '(ibm278)
+ :mnemonic ?*)
+
(define-coding-system 'cp775
"DOS codepage 775 (PC Baltic, MS-DOS Baltic Rim)"
:coding-type 'charset
- [patch] add support for ibm278,
Timo Myyrä <=