]> git.eshelyaron.com Git - emacs.git/commit
Fix inverted NOCOPY encode/decode parameter (bug#40407)
authorMattias Engdegård <mattiase@acm.org>
Sun, 5 Apr 2020 09:27:36 +0000 (11:27 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 5 Apr 2020 09:39:52 +0000 (11:39 +0200)
commit962562cde45071f74a37854a299e88470a4ecd49
tree730aa974d0aa77499d541e1d10812837ab1e7329
parentbec5cfee7660f6e283efbd30a693a6f8e9ea46b8
Fix inverted NOCOPY encode/decode parameter (bug#40407)

In {encode,decode}-coding-string, the NOCOPY parameter had the
opposite effect to what was intended and documented.  This 18 year old
bug (introduced in 4031e2bf0a) only affected calls with CODING-SYSTEM
being nil.

* src/coding.c (code_convert_string): Correct use of NOCOPY.
* test/src/coding-tests.el (coding-nocopy-trivial): New test.
src/coding.c
test/src/coding-tests.el