all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [patch] add support for ibm278
@ 2020-12-24 15:39 Timo Myyrä
  2020-12-24 18:56 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Timo Myyrä @ 2020-12-24 15:39 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-25 14:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-24 15:39 [patch] add support for ibm278 Timo Myyrä
2020-12-24 18:56 ` Eli Zaretskii
2020-12-25 11:21   ` Timo Myyrä
2020-12-25 14:02     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.