Hi, This patch provides a test and a fix for an edge case when opening files literally that have dos crlf line endings. The patch was made against master, but a similar fix could be issued for a potential Emacs 27.3 release if one is forthcoming. Best! Tom