emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't save in iso-8859-13


From: Kenichi Handa
Subject: Re: Can't save in iso-8859-13
Date: Mon, 4 Apr 2005 10:19:31 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Peter Dyballa <address@hidden> writes:
> A test file, starting with that header:

>       ;;; -*- mode: Text; coding: iso-8859-13; -*-

> and consisting of lines like these:

>       ;   oct   dec   hex
>       ;==========================
>         = 240 = 160 = A0 = U+00A0 : NO-BREAK SPACE
>       ¡ = 241 = 161 = A1 = U+201D : RIGHT DOUBLE QUOTATION MARK
>       ¢ = 242 = 162 = A2 = U+00A2 : CENT SIGN

> seemed to have some mistakes. A Mac OS X application (Smultron) capable 
> of loading a file in one of some dozen encodings showed that too. So I 
> went to correct my mistakes. I tried to remove the first column with 
> kill-rectangle and wanted to insert another rectangle that a Perl 
> script produces:

> while ( $Index < 256 ) {
>       printf("%c = %3o = %3d = %2X = \n", $Index, $Index, $Index, $Index);
>       $Index++;
> }

> The shell buffer was in UTF-8 mode.

The above script outputs raw bytes 0..255, which is not a
valid utf-8 code expected in *shell* buffer.  So, Emacs
decodes them as raw-byte characters (i.e. characters
belonging to charsets eight-bit-control and
eight-bit-graphic).

If you want to get iso-8859-13 characters in *shell* buffer,
you must change the process coding systems of the buffer to
iso-latin-7 by C-x RET p iso-latin-7 RET iso-latin-7 RET.

Please try it and run the script again.

---
Ken'ichi HANDA
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]