[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: decode-coding-string gone awry?
From: |
Stefan Monnier |
Subject: |
Re: decode-coding-string gone awry? |
Date: |
Thu, 17 Feb 2005 08:20:36 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Even if size_byte == size, it may contain eight-bit-graphic
> characters, and decoding such a string is a valid operation.
> And even if size_byte > size, it may contain only ASCII,
> eight-bit-graphic, and eight-bit-control charactes. It's
> also a valid operation to decode it.
I think it should not be considered valid to decode a multibyte string,
whether the string happens to only contains ASCII (or ASCII+eight-bit-*)
or not.
> It's not a trivial work to change the current code (in coding.c) to signal
> an error safely while doing a code conversion.
If by "safely" you mean "which will not break currently working code",
I agree. If by "safely" you mean "which will not break properly written
code", I disagree.
Stefan
- decode-coding-string gone awry?, David Kastrup, 2005/02/12
- Re: decode-coding-string gone awry?, Kenichi Handa, 2005/02/13
- Re: decode-coding-string gone awry?, David Kastrup, 2005/02/13
- Re: decode-coding-string gone awry?, Richard Stallman, 2005/02/15
- Re: decode-coding-string gone awry?, David Kastrup, 2005/02/15
- Re: decode-coding-string gone awry?, Stefan Monnier, 2005/02/15
- Re: decode-coding-string gone awry?, Richard Stallman, 2005/02/17
- Re: decode-coding-string gone awry?, Kenichi Handa, 2005/02/17
- Re: decode-coding-string gone awry?,
Stefan Monnier <=
- Re: decode-coding-string gone awry?, Kenichi Handa, 2005/02/18
- Re: decode-coding-string gone awry?, Stefan Monnier, 2005/02/18
- Re: decode-coding-string gone awry?, Richard Stallman, 2005/02/19
- Re: decode-coding-string gone awry?, Richard Stallman, 2005/02/18
- Re: decode-coding-string gone awry?, Richard Stallman, 2005/02/19
- Re: decode-coding-string gone awry?, Kenichi Handa, 2005/02/20
- Re: decode-coding-string gone awry?, Richard Stallman, 2005/02/22
- Re: decode-coding-string gone awry?, Richard Stallman, 2005/02/18
Re: decode-coding-string gone awry?, Stefan Monnier, 2005/02/14