Page 1 of 1

CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 10:39 pm
by markos26
When i run "CodeFormatter" it deletes every non UTF-8 file and leaves it with two lines. Check the attachments

Re: CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 10:50 pm
by eranif
Which codelite version?
Which OS?
Which formatter engine do you use?

Re: CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 10:59 pm
by markos26
Codelite 7.0 BETA - Nov 23, 2014

Windows XP SP3

Right click on ProjectName -> Source Code Formatter -> Yes

Re: CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 11:03 pm
by eranif
To check the engine:
Plugins->Source Code Formatter -> Options

Under the "C++" section, you should see which engine is being used (clang-format or AStyle)

Eran

Re: CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 11:09 pm
by markos26
The formatter engine is AStyle.

Thanks

Re: CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 11:12 pm
by eranif
The formatter engine is AStyle.
Thanks.

OK, so what happens when you switch to clang-format? does it work for you?

Eran

Re: CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 11:15 pm
by markos26
Converting the source file to UTF-8 with a text editor, the CodeFormatter ( AStyle ) works correctly
I 'll try the clang-format soon

Re: CodeFormatter destroys non UTF-8 files

Posted: Wed Nov 26, 2014 11:36 pm
by markos26
Formatting the same source files with clang-format engine, i have no problems