[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crashes with non-default language environments
From: |
Juri Linkov |
Subject: |
Re: Crashes with non-default language environments |
Date: |
Sun, 10 Feb 2008 00:17:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> In GNU Emacs 23.0.60 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.5)
> trying to open an article in Gnus causes an Emacs crash.
>
> This crash is reproducible with a small .emacs file that contains
> only the necessary settings to start Gnus, and a line to set
> the language environment `(set-language-environment 'cyrillic-koi8)'.
This crash is caused by the corrupt byte-code produced by
`byte-compile-lapcode'. `string-make-unibyte' at the end of this
function produces different bytecode strings in different
language environments. This problem can be narrowed down to:
(setq bytes '(135 213 135 212 0 192 131 87 13 11 135 211 0 184 131 86 12
11 135 210 0 176 131 61 25 14 8 135 209 0 167 131 61 25 14 8 0 167 131
87 13 11 135 208 0 152 131 61 25 14 8 0 152 131 86 12 11 135 207 0 137
131 61 24 14 8 135 206 0 128 131 61 24 14 8 0 128 131 87 13 11 135 205
0 113 131 61 24 14 8 0 113 131 86 12 11 135 204 0 98 131 61 23 14 8 0 96
132 61 22 14 8 135 203 0 82 131 61 23 14 8 0 80 132 61 22 14 8 0 82 131
87 13 11 135 202 0 60 131 61 23 14 8 0 58 132 61 22 14 8 0 60 131 86 12
11 135 201 0 38 131 10 135 200 0 32 131 87 13 11 0 32 131 10 135 199
0 20 131 86 12 11 0 20 131 10 135 198 0 8 131 61 9 8))
(setq bytestr (string-make-unibyte (concat (nreverse bytes))))
(aref bytestr 172) => 176
that produces correct bytecode in the default language environment, but
after evaluating (set-language-environment 'cyrillic-koi8), the bytecode
string differs by one byte:
(aref bytestr 172) => 156
--
Juri Linkov
http://www.jurta.org/emacs/
- Crashes with non-default language environments, Juri Linkov, 2008/02/07
- Re: Crashes with non-default language environments,
Juri Linkov <=
- Re: Crashes with non-default language environments, Stefan Monnier, 2008/02/09
- Re: Crashes with non-default language environments, Juri Linkov, 2008/02/10
- Re: Crashes with non-default language environments, Stefan Monnier, 2008/02/10
- Re: Crashes with non-default language environments, Miles Bader, 2008/02/10
- Re: Crashes with non-default language environments, Stefan Monnier, 2008/02/10
- Re: Crashes with non-default language environments, Miles Bader, 2008/02/10
- Re: Crashes with non-default language environments, Stefan Monnier, 2008/02/11
- Re: Crashes with non-default language environments, Miles Bader, 2008/02/11
- Re: Crashes with non-default language environments, Stefan Monnier, 2008/02/11
- Re: Crashes with non-default language environments, Juri Linkov, 2008/02/11