Skip to content
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

eaf-git无法处理中文commit message #21

Closed
yqu212 opened this issue Apr 27, 2022 · 2 comments
Closed

eaf-git无法处理中文commit message #21

yqu212 opened this issue Apr 27, 2022 · 2 comments
Assignees

Comments

@yqu212
Copy link

yqu212 commented Apr 27, 2022

当git有如下设置

[i18n]
	commitencoding = GB2312

eaf-git会报错

“/home/yqu212/repos/.emacs.d/lib/eaf/app/git/buffer.py”, line 242, in init self.last_commit_message = self.last_commit.message.splitlines()[0] 
UnicodeDecodeError: ‘gb2312’ codec can’t decode byte 0x97 in position 4: illegal multibyte sequence

这是由于commit message编码为GB2312。

这个仓库里面可以复现

@EdmondFrank EdmondFrank self-assigned this Apr 27, 2022
@EdmondFrank
Copy link
Collaborator

感谢反馈,在 3a80f5e 中已经修复,可以拉取最新版本试试

@yqu212
Copy link
Author

yqu212 commented Apr 27, 2022

最新版已经解决问题了。谢谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants