Workaround for issue #305

I just tried to make it work, it might be wrong/dangerous/garbage.
Please review.

Signed-off-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
core: always use utf-8 when encoding for stdout/stderr

Using the stdout and stderr encodings causes unicode encode errors
on Windows.

Use utf-8 when writing to stdout and stderr to fix writing unicode
error messages to the shell.

Related-to: #305
Helped-by: Ｖ字龍(Vdragon) <pika1021@gmail.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
Merge branch 'win32/unicode'

* win32/unicode:
  core: always use utf-8 when encoding for stdout/stderr
  Workaround for issue #305

Closes #305

Signed-off-by: David Aguilar <davvid@gmail.com>
Merge pull request #309 from Vdragon/translation_zh_TW

Update zh_TW translation.

Signed-off-by: David Aguilar <davvid@gmail.com>
tests: remove unused import
cmds: strip comments from commit messages

Git automatically strips comments from commit messages, but not when the
"-F" flag is used to specify a commit message file.

Strip the commit message before handing it off to Git.

Signed-off-by: David Aguilar <davvid@gmail.com>
cmds: move execution of "git commit" into the Commit command

Make things simpler by removing an unneeded layer of indirection.

Signed-off-by: David Aguilar <davvid@gmail.com>
cmds: allow --no-ff command-line argument during merge

Add a checkbox to the Merge dialog to support no-fast-forward during
merge
gitcfg: simplify how we get the guitool names

Dynamically find the guitool config options instead of hard-coding their
names.

Related-to: #44

Signed-off-by: David Aguilar <davvid@gmail.com>
cmds: add a way to launch actions in the background

Setting `guitool.<name>.background` will now launch custom commands in
the background, which avoids blocking the UI.

Related-to: #44

Suggested-by: Leho Kraav <leho@kraav.com>
Signed-off-by: David Aguilar <davvid@gmail.com>
core: read files in binary mode

Signed-off-by: David Aguilar <davvid@gmail.com>
core: portability and readability tweaks

Older pythons do not have generator expressions.
Adjust win32's fork() for portability to older pythons and make it a
little more readable.

Signed-off-by: David Aguilar <davvid@gmail.com>
git-cola v2.0.4

Signed-off-by: David Aguilar <davvid@gmail.com>
browse: ensure that actions are processed in the main thread

The model.message_updated signal can be delivered from a background
thread (e.g. when using inotify).

Use Qt's signals/slots to handle the message.  Posting signals can be
done from any thread.  Qt takes care of delivering the signal to the
main thread.

Signed-off-by: David Aguilar <davvid@gmail.com>
Create pt_BR.po
Add simplified chinese translation of hotkey page

based on the traditional chinese version
Brazilian translator
doc: add Vitor to the credits

Signed-off-by: David Aguilar <davvid@gmail.com>
Merge pull request #313 from lobocode/master

Translate git-cola to Brazilian.

Signed-off-by: David Aguilar <davvid@gmail.com>
doc: add v2.0.5 release notes draft

Signed-off-by: David Aguilar <davvid@gmail.com>