]> git.eshelyaron.com Git - emacs.git/commit
Fix the tests for 'string-limit'
authorEli Zaretskii <eliz@gnu.org>
Wed, 12 May 2021 13:41:03 +0000 (16:41 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 12 May 2021 13:41:03 +0000 (16:41 +0300)
commit98e5639c3c3caf2424f35e4a9f9c53ff48f43897
treea1ba556a1bae6974fea6453919cd09ad48cdcf48
parentd2034296a906bf444472c02b958dba21cbaae762
Fix the tests for 'string-limit'

* test/lisp/emacs-lisp/subr-x-tests.el (subr-string-limit-coding):
Fix the expected results of string-limit when encoding with
UTF-16.  Add tests for UTF-8 with BOM.  (Bug#48324)

* lisp/emacs-lisp/subr-x.el (string-limit): Add FIXME comment
about the current implementation, which is faulty by design.
lisp/emacs-lisp/subr-x.el
test/lisp/emacs-lisp/subr-x-tests.el