author | Alexander Gavrilov <angavrilov@gmail.com> | |
Fri, 23 Jan 2009 21:18:13 +0000 (00:18 +0300) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 1 Feb 2009 22:56:54 +0000 (14:56 -0800) | ||
commit | 06569cd5bef7c8e3925bd36870abc083ae7b93f8 | |
tree | 7d7fbe4f5c113925edc71ce4b4736853c9512ef8 | tree | snapshot |
parent | e612120d232a5ef04dcf22fc92741565ebb4d0c8 | commit | diff |
git-gui: Fix post-commit status with subject in non-locale encoding
As pointed out in msysgit bug #181, when a non-locale encoding is
used for commits, post-commit status messages display the subject
incorrectly. It happens because the file handle is not properly
configured before the subject is read back.
This patch fixes it by factoring out the code that is used to setup
the output handle into a separate function, and calling it from
the reading code.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Acked-by: Robin Rosenberg <robin.rosenberg@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
As pointed out in msysgit bug #181, when a non-locale encoding is
used for commits, post-commit status messages display the subject
incorrectly. It happens because the file handle is not properly
configured before the subject is read back.
This patch fixes it by factoring out the code that is used to setup
the output handle into a separate function, and calling it from
the reading code.
Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Acked-by: Robin Rosenberg <robin.rosenberg@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/commit.tcl | diff | blob | history |