[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unsafe coding system
From: |
Kenichi Handa |
Subject: |
Re: Unsafe coding system |
Date: |
Thu, 8 Nov 2001 08:48:17 +0900 (JST) |
User-agent: |
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.1.30 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) |
"Ehud Karni" <ehud@unix.simonwiesel.co.il> writes:
> The cause is an Hebrew Alef in M$DOS coding (\x80) that was in the
> file when it was read in the 1st time.
> The problem is: Although I did non significant change (replaced space
> by space) the saved file changed a lot and the cause of it (\x80) still
> remained in the problematic state.
> What I want: I want to be able to save it in UNSAFE way. i.e. I want
> to save it as hebrew-iso-8bit and the characters that can't be encoded
> by this coding system will be left AS IS (8 bit).
Could you please try below?
(make-coding-system
'hebrew-iso-8bit 2 ?8
"ISO 2022 based 8-bit encoding for Hebrew (MIME:ISO-8859-8)"
'(ascii hebrew-iso8859-8 nil nil
nil ascii-eol ascii-cntl nil nil nil nil nil t)
'((safe-charsets ascii hebrew-iso8859-8 eight-bit-control)
(mime-charset . iso-8859-8)))
This definition is different from the original only in
including eight-bit-control in safe-charsets.
---
Ken'ichi HANDA
handa@etl.go.jp