]> git.eshelyaron.com Git - emacs.git/commit
Don’t scan text twice to guess coding system
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Feb 2023 16:51:45 +0000 (08:51 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 13 Feb 2023 20:32:59 +0000 (12:32 -0800)
commitccc092115172f15c9135771f90d0000f8bf21614
treecf5ebbd018a434dfb289a708ecc623d35e107c5a
parentb0842671e750be08356425e2fc38251e7b08d5d7
Don’t scan text twice to guess coding system

* src/fileio.c (Finsert_file_contents): If the file shrank
below 4 KiB, don’t read duplicate text into READ_BUF.
This also removes a use of SEEK_END, which Linux /proc
file systems do not support (not that we should get here
with /proc).
src/fileio.c