Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
'D' compiler is not fully supported! UTF-8 to the masses :)
Ptomaine:
'D' source files are ALWAYS UTF-8. I couldn't find any way to convert my source code file into UTF-8 in Code::Blocks (only converted by external tools). Maybe it is the time to let programmers to choose the source file encodings? Moreover, when handling 'D' projects it is natural to set UTF-8 encoding for the source files by default.
One more thing, 'D' source files can be compiled in 3 ways by now. Only 2 of them supported by the Code::Blocks IDE ('DMD' and 'DGC aka 'D' for GCC'). The third one is when using 'BUILD' tool (the most useful approach). It needs to be included in Code::Blocks too (http://www.dsource.org/projects/build/).
mandrav:
--- Quote from: Ptomaine on August 31, 2006, 05:30:12 pm ---'D' source files are ALWAYS UTF-8. I couldn't find any way to convert my source code file into UTF-8 in Code::Blocks (only converted by external tools). Maybe it is the time to let programmers to choose the source file encodings? Moreover, when handling 'D' projects it is natural to set UTF-8 encoding for the source files by default.
--- End quote ---
What's wrong with "Settings->Editor->Default encoding"?
Game_Ender:
Build and Code::Blocks overlap too much, build + D is just like make + C++/C. If you want to use build you have to invoke it just like you would make.
Ptomaine:
--- Quote from: mandrav on August 31, 2006, 06:15:51 pm ---What's wrong with "Settings->Editor->Default encoding"?
--- End quote ---
What are you talking about? If you've ment "Settings->Editor->Default encoding when opening files" then you must know that it is NOT the way to improve the situation. I want to CREATE files in the neccessary encoding and even convert them if I need it.
Tell me, why I cannot convert files (source code or whatever) to any other encodings just within CB. I care this because the English language is not my native one and I make my comments and string constants in my native language. Why not to do just like Ultimate++ IDE allows you to do that? It's so natural tool and not so hard to implement? So why?????
Ptomaine:
--- Quote from: Game_Ender on August 31, 2006, 07:50:36 pm ---Build and Code::Blocks overlap too much, build + D is just like make + C++/C. If you want to use build you have to invoke it just like you would make.
--- End quote ---
Thanks for your explaination. But let me disagree with you. It is my responsibility to tune the build tool in a such a way that it works right for me. The only responsibility for CB is to call it and to pass the needed arguments to it. That's all.
Navigation
[0] Message Index
[#] Next page
Go to full version