[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: docs for insert-file-contents use 'bytes'

From: Kenichi Handa
Subject: Re: docs for insert-file-contents use 'bytes'
Date: Wed, 01 Oct 2008 09:44:31 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

In article <address@hidden>, Ted Zlatanov <address@hidden> writes:

> There could be a insert-file-decoded-contents that seeks to a byte
> position and gets the next character at or after that position.  That's
> not too hard to implement and it's fast.

It's not that easy.  Some encoding requires to seek back an
escape sequence to get the next character.  And, for UTF-16
with BOM, we have to check the first 2-byte.

Kenichi Handa

reply via email to

[Prev in Thread] Current Thread [Next in Thread]