Code::Blocks Forums

User forums => Help => Topic started by: wookiesoldier on November 09, 2016, 06:23:56 am

Title: C::B 16.01 pjt-file: backslashes are changed to slashes when adding new files
Post by: wookiesoldier on November 09, 2016, 06:23:56 am
Hi,

I'm using Code::Blocks 16.01 on a Windows 7 32bit machine.

I loaded an C::B Project created with r6853. The file paths in the pjt-file contain backslashes, i.e. ..\..\..\test.cpp

If I'm adding new files recursively now (via right click -> "Add files recursively...") to the project,  the backslashes in all (!) file paths change into slashes, i.e. ../../../test.cpp

This behavior is inconveniert when I compare an old pjt-file and a recent pjt-file to look for changes being made. Because of the backslahes being transformed into slahes, it's difficult to see the actual changes.

How can I change this behavior to ensure that Code::Blocks uses backslahes in the file paths again?

Regards
Title: Re: C::B 16.01 pjt-file: backslashes are changed to slashes when adding new files
Post by: oBFusCATed on November 09, 2016, 08:58:59 am
How can I change this behavior to ensure that Code::Blocks uses backslahes in the file paths again?
The only way is to change the code of C::B.
This change is intentional and it is made to make sharing project between OSes easier.
Title: Re: C::B 16.01 pjt-file: backslashes are changed to slashes when adding new files
Post by: wookiesoldier on November 09, 2016, 12:39:56 pm
OK, thank you for the feedback.