User forums > Using Code::Blocks
custom variable string: loading .cbp converts slash to backslash
oBFusCATed:
--- Quote from: J. on April 20, 2017, 10:03:15 pm ---However my basic question I was starting off with was is why a slash the user edits in some config interfact is saved as backslash in the .cbp xml structure? Is there any need for that?
--- End quote ---
Because on cbp project is expected to work equally well on windows and on linux. To make this work well I think we're converting everything to unix style slashes on save and then back to the correct slash for the current OS on load.
--- Quote from: J. on April 20, 2017, 10:03:15 pm ---NB: It appears that the functions like 'TO_UNIX_PATH' convert every slash or backslash appropriately, regardless if the argument is a proper path or not.
--- End quote ---
Why do you expect something different? They are simplified str_replace like functions.
Finally is there a problem and where it is? Which command fails and what is the expected output?
And please post the full log without annotations, comments or anything else.
Navigation
[0] Message Index
[*] Previous page
Go to full version