]> git.eshelyaron.com Git - emacs.git/commit
Don't clobber match data in utf-8-hfs conversion (bug#41445)
authorMattias Engdegård <mattiase@acm.org>
Fri, 22 May 2020 10:21:28 +0000 (12:21 +0200)
committerMattias Engdegård <mattiase@acm.org>
Wed, 27 May 2020 14:29:43 +0000 (16:29 +0200)
commitc5cf630ecd467fdcac13928f7e240cfc98cedc7a
tree874eb44ee930b78552765a2fb56d8ee4d1eea1c5
parent0fc4989f34bdaf1bc443d05ece886ea91e7bc9cc
Don't clobber match data in utf-8-hfs conversion (bug#41445)

Reported by Ture Pålsson.

* lisp/international/ucs-normalize.el
(ucs-normalize-hfs-nfd-post-read-conversion)
(ucs-normalize-hfs-nfd-pre-write-conversion):
Use save-match-data to avoid match data clobber in normalisation.
* test/lisp/international/ucs-normalize-tests.el
(ucs-normalize-save-match-data): New test.
lisp/international/ucs-normalize.el
test/lisp/international/ucs-normalize-tests.el