Edit: In order to avoid this 'bug' i must save file without files's extension
Title: Re: I cant open my file.cpp anymore
Post by: MortenMacFly on April 18, 2011, 07:06:23 am
Can you provide a sample so we can reproduce? What's your locale, what is your settings under Settings -> Editor -> tab "Other settings" -> everything related to encoding?
Title: Re: I cant open my file.cpp anymore
Post by: VUT on April 18, 2011, 10:14:36 pm
It happened right now :shock:
my setting are a bit different from default
caret width 3 Colour green Period 305
You have to play with these Styles ( Allman, K&R,Stroustrup,Gnu,Linux) then format the code, save the file , close and open it try an other style and repeat . I did that several times ( about 10 ) There are two bug
1) Codeblocks add NULL char to source and gcc return this msg <<warning: null character(s) ignored>> you can see null char from an external editor. from external editor : http://img130.imageshack.us/img130/1951/bugll.png 2) file is corrupted
Add: if you copy and paste some code's lines from file corrupted to new external file , no weird char will be printed . then you open it by codeblocks but the file will be still corrupted by second bug ( wrong font ). sry for bad english
Title: Re: I cant open my file.cpp anymore
Post by: Jenna on April 18, 2011, 11:01:56 pm
Can you provide a sample so we can reproduce? What's your locale, what is your settings under Settings -> Editor -> tab "Other settings" -> everything related to encoding?
Providing a sample means: attach a corrupted file or give a step by step description how to reproduce reliable. If possible attach the corrupted and the correct version of the same file.
Title: Re: I cant open my file.cpp anymore
Post by: VUT on April 18, 2011, 11:43:48 pm
open file change style to k&r ( or other styles Allman, K&R,Stroustrup,Gnu,Linux) plugin-> source code formatter (Astyle) save and close open the file again