[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string-bytes and coding systems
From: |
Eric Abrahamsen |
Subject: |
Re: string-bytes and coding systems |
Date: |
Fri, 10 Mar 2017 08:37:32 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> 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 ;-)
Hmm, maybe it will be bindat.el after all! Or I'll just keep the current
in-buffer string-bytes approach and wait for something to explode.
- Re: string-bytes and coding systems, (continued)
Re: string-bytes and coding systems, Eli Zaretskii, 2017/03/09