New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError when "View History..." is triggered and gitk isn't installed and zh_TW locale is used #528

Closed
Vdragon opened this Issue Nov 26, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@Vdragon
Contributor

Vdragon commented Nov 26, 2015

Reproduce step

  1. env LANGUAGE=zh_TW git cola
  2. open a git repository
  3. right-click a file in status widget and choose "View History..."

Traceback

Traceback (most recent call last):
  File "cola/widgets/status.py", line 952, in view_history
    cmds.do(cmds.VisualizePaths, selection.union(selection.selection_model()))
  File "cola/cmds.py", line 1803, in do
    return do_cmd(cls(*args, **opts))
  File "cola/cmds.py", line 1812, in do_cmd
    msg, details = utils.format_exception(e)
  File "cola/utils.py", line 38, in format_exception
    details = '\n'.join(details)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 22: ordinal not in range(128)

Environment

OS

Ubuntu 14.04

Locale

LANG=zh_TW.UTF-8
LANGUAGE=zh_TW:zh_HK:zh_CN:en_US:en
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment