[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crashes with non-default language environments
From: |
Stefan Monnier |
Subject: |
Re: Crashes with non-default language environments |
Date: |
Sun, 10 Feb 2008 20:39:45 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
>>> 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:
>>
>> Shouldn't it be string-to-unibyte instead?
> I've just checked that `string-as-unibyte' produces even worse results
> than `string-make-unibyte'. It replaces every byte in the original
> string with 2-byte sequences.
Of course, string-AS-unibyte is the worst of all three. But nobody
suggested to use that one. I just suggested to replace
string-MAKE-uniybte by string-TO-unibyte.
string-TO-unibyte ~= (encode-coding-string STR 'binary)
string-AS-unibyte ~= (encode-coding-string STR 'emacs-internal)
(unicode or emacs-mule, depending on the Emacs version)
string-MAKE-unibyte ~= (encode-coding-string STR locale-coding-system)
Stefan
- Crashes with non-default language environments, Juri Linkov, 2008/02/07
- Re: Crashes with non-default language environments, Juri Linkov, 2008/02/09
- 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 <=
- 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
- Re: Crashes with non-default language environments, Kenichi Handa, 2008/02/12
- Re: Crashes with non-default language environments, Stefan Monnier, 2008/02/12
- Re: Crashes with non-default language environments, Kenichi Handa, 2008/02/12