This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git
The following commit(s) were added to refs/heads/master by this push: new 0287c35 default (#63) 0287c35 is described below commit 0287c3507d81a1cc1d904f386f6dddb032f25dba Author: Elliotte Rusty Harold <elh...@users.noreply.github.com> AuthorDate: Sat Nov 23 20:08:01 2024 +0000 default (#63) --- .../org/apache/maven/plugins/announcement/AnnouncementMailMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java b/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java index 639ef2a..21b15dc 100644 --- a/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java +++ b/src/main/java/org/apache/maven/plugins/announcement/AnnouncementMailMojo.java @@ -27,6 +27,7 @@ import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; +import java.nio.charset.Charset; import java.util.List; import org.apache.maven.model.Developer; @@ -338,7 +339,7 @@ public class AnnouncementMailMojo extends AbstractAnnouncementMojo { protected String readAnnouncement(File file) throws MojoExecutionException { try { if (templateEncoding == null || templateEncoding.isEmpty()) { - templateEncoding = System.getProperty("file.encoding"); + templateEncoding = Charset.defaultCharset().displayName(); getLog().warn("File encoding has not been set, using platform encoding '" + templateEncoding + "', i.e. build is platform dependent!"); }