]> git.eshelyaron.com Git - emacs.git/commit
Minor fixes in filepos-to-bufferpos
authorEli Zaretskii <eliz@gnu.org>
Fri, 19 Jun 2015 08:19:06 +0000 (11:19 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 19 Jun 2015 08:19:06 +0000 (11:19 +0300)
commita2bb6c7bc19719eea3a84e3374f4da6781bc4bf0
tree06573411eb12d21933a8ac8db51a381e89211358
parentc4151ebe15479de4c2e511b068cdf9af6a4576cf
Minor fixes in filepos-to-bufferpos

* lisp/international/mule-util.el (filepos-to-bufferpos): Remove
test for utf-8-emacs.  Exempt single-byte encodings from the
'use-exact' path when QUALITY is 'exact'.  Test UTF-16 encodings
for BOM before subtracting 2 bytes.  Use 'identity' when adjusting
UTF-16 encoded files for CR-LF EOLs.
lisp/international/mule-util.el