Community
Participate
Working Groups
Build Identifier: I20110412-2200 CDT Version:I201103111317 Java Version:1.6.0_24-b07-334 OS: Mac OS X Locale: ja_JP.utf8 This is Mac specific problem, working in windows and linux. Reproducible: Always Steps to Reproduce: 1. Create a new C++ project with DBCS name. Alternatively import the attached project. 2. Create a new C++ source file, build and run. 3. Click on project , right click->Debug as->Local c/c++ application. 4. The debugger wont start. It shows error as shown in the screenshot.
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.