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

pwndbg will not display source code when source code has chinese characters #578

Closed
thinkycx opened this issue Nov 26, 2018 · 4 comments
Closed
Labels

Comments

@thinkycx
Copy link

When use directory glibc source in gdb(directory /root/Pwn/glibc/glibc-2.23/malloc), it will display the source code in pwndbg like this:
image

However, when I add Chinese characters in souce code like this, pwndbg will not display it . Is this a bug? Will you fix it?
image

@disconnect3d
Copy link
Member

disconnect3d commented Nov 26, 2018 via email

@thinkycx
Copy link
Author

OK. You can paste the Chinese code below in any code.

// comment 注释:中华人民共和国万岁!

@disconnect3d

@thinkycx thinkycx changed the title pwndbg will not display source code when source code has chinease characters pwndbg will not display source code when source code has chinese characters Nov 26, 2018
disconnect3d added a commit to disconnect3d/pwndbg that referenced this issue Nov 27, 2018
It turned out we failed when there were unicode characters in a file.
@disconnect3d
Copy link
Member

@thinkycx Please try with latest dev, should be fixed now :)

@thinkycx
Copy link
Author

It works! Thank you man! Your bug fixing speed is very fast!
image
@disconnect3d

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

No branches or pull requests

2 participants