| Summary: | DBCS4.1: CDT Debugger cannot start if the project name has DBCS characters in Mac OS X. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Harendra <harendra> | ||||||||
| Component: | cdt-debug | Assignee: | cdt-debug-inbox <cdt-debug-inbox> | ||||||||
| Status: | NEW --- | QA Contact: | Jonah Graham <jonah> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | camle, cdtdoug, kennoji, kitlo, pawel.1.piech, vivkong | ||||||||
| Version: | 8.0 | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | Macintosh | ||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Harendra
Created attachment 193664 [details]
Debugger startup failure screenshot
Created attachment 193665 [details]
Test project
Created attachment 193961 [details]
Encode commands in UTF-8 as fallback
The problem seems to be that the string cannot be encoded in the default charset which is MacRoman (at least for me).
Looking at the String.getBytes domcumentation:
"The behavior of this method when this string cannot be encoded in the default charset is unspecified. The CharsetEncoder class should be used when more control over the encoding process is required."
I tried to encode the -environment-cd command in UTF-8 as a fallback when it's not possible to encode the command in the default charset and it works, the debug session can start. But other things don't work: the runner.cpp file won't open because the path is wrong, the gdb console will also show wrong paths. There must be a more general way to address this problem.
|