Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EclipseCompiler does not respect encoding. #73

Closed
karkusviktor opened this issue May 13, 2020 · 2 comments
Closed

EclipseCompiler does not respect encoding. #73

karkusviktor opened this issue May 13, 2020 · 2 comments

Comments

@karkusviktor
Copy link

Since 2.8.6 it reads the files with default charset:

Try compiling the attached file when default charset is ISO-8859-1.
Utf.java.txt

@tomaswolf
Copy link
Contributor

tomaswolf commented May 24, 2020

As far as I see the BatchCompiler also would use the default charset. Did you mean that you'd compile this by giving the charset on the command-line? Or which charset should be used?

CompilerConfig.getSourceEncoding() needs to be used also for that StandardJavaFileManager.

tomaswolf referenced this issue in tomaswolf/plexus-compiler May 24, 2020
The JSR-199 Eclipse compiler needs to have the encoding set explicitly
for its javax.tools.StandardJavaFileManager. Use the encoding configured
in the CompilerConfiguration or in the compiler arguments, and fall back
to the platform default only if none is given explicitly.
olamy pushed a commit that referenced this issue Jun 18, 2020
…74)

The JSR-199 Eclipse compiler needs to have the encoding set explicitly
for its javax.tools.StandardJavaFileManager. Use the encoding configured
in the CompilerConfiguration or in the compiler arguments, and fall back
to the platform default only if none is given explicitly.
@tomaswolf
Copy link
Contributor

tomaswolf commented Aug 10, 2020

I think this can be closed.

@olamy : How about a new release? In addition to this, #78 also added support for the <release> tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants