]> git.eshelyaron.com Git - emacs.git/commit
Fix zero-padding bug with (format "%#08x" n)
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Dec 2017 02:07:54 +0000 (18:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 Dec 2017 02:08:56 +0000 (18:08 -0800)
commit47423f0603f2ecfb78352be5477fb02c44f1fd35
tree78c40843566e2464c5d84dd12d4057d064b768e3
parentd4db37b283daffa0f8c942a5b526b6444edc34c5
Fix zero-padding bug with (format "%#08x" n)

Problem reported by Gustaf Waldemarson (Bug#29609).
* src/editfns.c (styled_format):
Put zero padding after a leading "0x", not before.
* test/src/editfns-tests.el (format-sharp-0-x): New test.
src/editfns.c
test/src/editfns-tests.el