[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile can't find a chinese named file
From: |
Marko Rauhamaa |
Subject: |
Re: guile can't find a chinese named file |
Date: |
Wed, 15 Feb 2017 12:50:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
David Kastrup <address@hidden>:
> If you tell Emacs that some external entity is in UTF-8, it will
> represent all valid UTF-8 sequences as properly decoded characters,
> and it has special codes for all bytes not part of valid UTF-8.
>
> As a result, it works with valid UTF-8 perfectly as expected but will
> reproduce arbitrary byte streams thrown at it perfectly when decoding
> as UTF-8 and then reencoding into UTF-8 again.
>
> Guile is lacking this byte stream reproducibility when
> decoding/reencoding. That makes it a whole lot less robust for dealing
> with externally provided material.
Python3 supports this by abusing the surrogate code points. I don't
recommend following Python's lead.
Instead, when decoding a byte string into Unicode, the application
should be returned a list:
( chars bytes chars bytes ... chars )
or some similar mechanism.
Marko
- Re: guile can't find a chinese named file, (continued)
- Re: guile can't find a chinese named file, Mike Gran, 2017/02/14
- Re: guile can't find a chinese named file, Marko Rauhamaa, 2017/02/14
- Re: guile can't find a chinese named file, Chris Vine, 2017/02/14
- Re: guile can't find a chinese named file, Marko Rauhamaa, 2017/02/15
- Re: guile can't find a chinese named file, tomas, 2017/02/15
- Re: guile can't find a chinese named file, David Kastrup, 2017/02/15
- Re: guile can't find a chinese named file, tomas, 2017/02/15
- Re: guile can't find a chinese named file, Eli Zaretskii, 2017/02/15
- Re: guile can't find a chinese named file, tomas, 2017/02/15
- Re: guile can't find a chinese named file, Eli Zaretskii, 2017/02/15
- Re: guile can't find a chinese named file,
Marko Rauhamaa <=
- Re: guile can't find a chinese named file, David Kastrup, 2017/02/15
- Re: guile can't find a chinese named file, Chris Vine, 2017/02/15
- Re: guile can't find a chinese named file, tomas, 2017/02/15
- Re: guile can't find a chinese named file, Chris Vine, 2017/02/15
- Re: guile can't find a chinese named file, tomas, 2017/02/15
- Re: guile can't find a chinese named file, Chris Vine, 2017/02/15
- Re: guile can't find a chinese named file, tomas, 2017/02/15
- Re: guile can't find a chinese named file, Eli Zaretskii, 2017/02/15
- Re: guile can't find a chinese named file, Andy Wingo, 2017/02/26
- Re: guile can't find a chinese named file, Eli Zaretskii, 2017/02/27