[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `decode-coding-string' question
From: |
Paul Pogonyshev |
Subject: |
Re: `decode-coding-string' question |
Date: |
Thu, 6 Jul 2006 18:52:28 +0300 |
User-agent: |
KMail/1.7.2 |
Kenichi Handa wrote:
> In article <address@hidden>, Paul Pogonyshev <address@hidden> writes:
>
> >> Why don't you find paticular characters in the decoded
> >> string?
>
> > I do. But I need to know where they begin in the buffer (containing
> > the encoded C string.) I don't see a way to keep this information at
> > present... :(
>
> How did you make that buffer? Why don't you have an
> already-decoded text in that buffer?
Because it's a C source file. Strings have to be encoded there.
> > For instance, if the buffer only contains "\xc2\xa9foo", I'd like
> > to receive a string with the following text properties:
>
> > #("©foo" 0 1 (point 0) 1 2 (point 8) 2 3 (point 9) 3 4 (point 10))
>
> > The first characters actually takes 8 characters in the buffer!
>
> They are just displayed by 8 characters, as well as, a
> control character, say Formfeed (C-l), is displayed by 2
> characters "^L".
They are 8 different characters in the buffer.
Paul
- `decode-coding-string' question, Paul Pogonyshev, 2006/07/03
- Re: `decode-coding-string' question, Kenichi Handa, 2006/07/03
- Re: `decode-coding-string' question, Eli Zaretskii, 2006/07/03
- Re: `decode-coding-string' question, Paul Pogonyshev, 2006/07/04
- Re: `decode-coding-string' question, Kenichi Handa, 2006/07/05
- Re: `decode-coding-string' question,
Paul Pogonyshev <=
- Re: `decode-coding-string' question, Eli Zaretskii, 2006/07/06
- Re: `decode-coding-string' question, Paul Pogonyshev, 2006/07/06
- Re: `decode-coding-string' question, Eli Zaretskii, 2006/07/07
- Re: `decode-coding-string' question, Paul Pogonyshev, 2006/07/07
- Re: `decode-coding-string' question, David Kastrup, 2006/07/07
- Re: `decode-coding-string' question, Paul Pogonyshev, 2006/07/07
- Re: `decode-coding-string' question, David Kastrup, 2006/07/08
Re: `decode-coding-string' question, Richard Stallman, 2006/07/04