Bug #17718 2010-11-16 22:51

surdules

Command line with "\n" substring gets translated to newline

I have a project with some assembly files in it. To compile these assembly files, I specify a custom command line as follows:

1. Select assembly file "foo.asm" in the source browser

2. Right click, select "Properties"

3. Select "Advanced" tab

4. Check the box "Use custom command to build this file:"

5. Type in the following command:

C:\bin\nasm.exe -f win32 -g -o $object $file

The project compiles just fine.

At this point, I exit CodeBlocks, save the project/workspace, then restart CodeBlocks. When I try to compile the project again, I get an error about how the command is incorrect for "foo.asm".

When I go to the same properties dialog to view the command, it now looks like this:

E:\scummvm\bin

asm.exe -f win32 -g -o $object $file

I think that what happened is the "\n" in "...\bin\nasm.exe ..." got translated to a "newline" when the project was saved and reloaded later.

I am using CodeBlocks 10.05, on Windows XP SP3 with all patches installed.

Thanks,

Razvan.

Category
Application::Interface
Group
 
Status
Open
Close date
 
Assigned to