Bug #16284 2009-09-19 13:29
euspectre
Backslash chars are handled incorrectly in custom variables
The problem occurs with my C/C++ project if I add a custom variable that contains '\' characters.
I select menu item "Project" -> "Build Options", "Custom Variables" tab and create a variable with name (key), say, pkgdatadir and the value like the following:
D:\\xwork\\data
This is used, for example, to be able to pass options like the following to the compiler:
-DDATADIR=\""$(pkgdatadir)"\"
DATADIR is used in the C source files in this project. So far so good, the project builds ok, the variable has exactly the same value as I have specified.
Now I close and reopen this project (or just close Code::Blocks and then launch it again).
But now 'pkgdatadir' variable is different:
D:\xwork\data
instead of
D:\\xwork\\data
This may result in build problems ("error: \x used with no following hex digits"), not critical but quite annoying.
Code::Blocks ver.: nightly build rev 5731;
OS: Windows XP Pro SP3 x86
- Category
- Application::WrongBehaviour
- Group
- Status
- Open
- Close date
- Assigned to