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

Source not available if the path contains unicode char when hit bp #507

Open
caslan opened this issue Feb 18, 2017 · 0 comments
Open

Source not available if the path contains unicode char when hit bp #507

caslan opened this issue Feb 18, 2017 · 0 comments

Comments

@caslan
Copy link

caslan commented Feb 18, 2017

Internal bug id: 196744

Repro:

  1. Puting your source code under path like: /home/tester/Documents/test司法

  2. Open in VS Code

  3. Set some BP

  4. F5 tostart debugging

Expected:

VS Code is able to find the place to stop in source code

Actual:

Stopped at a place and show:

Source /home/tester/Documents/test345217270346263225/a.cpp is not available.

Investigation:

There is no such path /home/tester/Documents/test345217270346263225/,

it should be /home/tester/Documents/test司法

Inside of MI mode, GDB sends the actual document using Unicode escapes. For instance in the case I am looking at, the actual returned path is /home/jacdavis/tests\345\217\260\345\214\227/a.out.

That is a gdb bug. We should check and see if we can work around this by translating those back to Unicode, but we may be out of luck here.

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

No branches or pull requests

1 participant