Community
Participate
Working Groups
Build Identifier: If you specify -encoding ABC <sources> - all sources will be compiled using ABC encoding But if some of the sources are not listed in the command line but loaded from -sourcepath location - they will be compiled with null encoding it is not compatible with javac though I do not know whether it is a bug or not Possible fix is to change call to setPaths in Main.configure - it passes customEncoding which is always null at this point. defaultEncoding should be passes instead. Reproducible: Always
Olivier, is this supposed to be the desired behaviour ?
Ayushman, I think we should pass it the specified encoding if we have it. Before we should investigate exactly how javac is working when -sourcepath is mixed up with -encoding. Thanks for investigating this.
Gennady, a small test case to reproduce this issue will be a great help. Thanks in advance!
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.