Code::Blocks Forums

User forums => Help => Topic started by: Leo.J90 on May 04, 2006, 07:04:02 pm

Title: The code doesn't appear
Post by: Leo.J90 on May 04, 2006, 07:04:02 pm
I copied all CB files from Windows to Linux, and when i try to open and change any main.c the code doesn't appear, main.c apperas as empty. But, if i open it with Kate the code appears. :?

When i compile it, it makes 5 folders as if I'd be on Windows. For example:

I have:
/Functions/ <--- folder
main.c
Functions.cbp
Functions.layout

And when i compile it, it makes: C:/Documents and Settings/Leo/My Documents/Exercises/Functions/Functions.exe

So i have: /home/leo/Documents/Exercises/Functions/C:/Documents and Settings/Leo/My Documents/Exercises/Functions/Functions.exe
Title: Re: The code doesn't appear
Post by: Michael on May 04, 2006, 07:18:55 pm
I copied all CB files from Windows to Linux, and when i try to open and change any main.c the code doesn't appear, main.c apperas as empty. But, if i open it with Kate the code appears. :?

May be it is a character encoding problem. Check if you use in Linux the same encoding as in Windows.

Best wishes,
Michael
Title: Re: The code doesn't appear
Post by: Leo.J90 on May 05, 2006, 01:41:07 am
Ok. I'll do it.

Thanks! :wink:

Sorry. Where can i check it?
Title: Re: The code doesn't appear
Post by: takeshimiya on May 05, 2006, 03:09:13 am
Sorry. Where can i check it?
Settings->Editor->Default encoding when opening files.
Assuming you're using a nightly build ;)