[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string-bytes and coding systems
From: |
Stefan Monnier |
Subject: |
Re: string-bytes and coding systems |
Date: |
Fri, 10 Mar 2017 04:02:33 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
>> When this text gets written to file it will also be encoded as
>> utf-8, ergo testing string lengths with `string-bytes' is going to
>> always produce the right results in the final file.
> I suggest to use filepos-to-bufferpos to find where to break text into
> lines.
BTW, filepos-to-bufferpos uses string-bytes (or equivalent data, with
the same caveat for raw bytes) for utf-8 buffers ;-)
Stefan
- Re: string-bytes and coding systems, (continued)
Re: string-bytes and coding systems, Eli Zaretskii, 2017/03/09