]> code.delx.au - gnu-emacs/commit
Improve handling of non-ASCII characters in Git log messages
authorEli Zaretskii <eliz@gnu.org>
Sun, 10 Apr 2016 16:04:33 +0000 (19:04 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 10 Apr 2016 16:04:33 +0000 (19:04 +0300)
commit668c7bc5ba761551ef0d08dc96080eb5aa169da1
tree645abdf4180791db1bf7bf8959252020db9f606b
parentb57076929f0e904864e1457d5789f2fe6652fc84
Improve handling of non-ASCII characters in Git log messages

* lisp/vc/vc-git.el (vc-git-commits-coding-system): Now a defcustom.
(vc-git-log-output-coding-system): New defcustom.
(vc-git-print-log, vc-git-command, vc-git--call): Use
'vc-git-log-output-coding-system' for reading stuff from Git.
Don't override values of 'coding-system-for-read/write' if they
are bound by caller -- this allows the user to force an encoding
via "C-x RET c".
(vc-git-checkin): On MS-Windows, pass the log message via a
temporary file, to work around the limitations on passing
non-ASCII characters via command-line arguments.  Force using the
'locale-coding-system' for Git command-line arguments.  This fixes
problems with non-ASCII commit log messages on MS-Windows.
(Bug#23076)

* etc/NEWS: Mention the new vc-git related defcustoms.
etc/NEWS
lisp/vc/vc-git.el