You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2022/12/31 23:15:34 UTC
[freemarker] 07/09: Forward ported from 2.3-gae: [FREEMARKER-187] Build failed on some systems due to character encoding issue
This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch 3
in repository https://gitbox.apache.org/repos/asf/freemarker.git
commit 80a71b7d89cf06fd1f30f200a7d207576399d9ff
Author: ddekany <dd...@apache.org>
AuthorDate: Sun Jan 1 00:09:10 2023 +0100
Forward ported from 2.3-gae: [FREEMARKER-187] Build failed on some systems due to character encoding issue
---
.../core/pluggablebuiltin/impl/DefaultTruncateBuiltinAlgorithm.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/freemarker-core/src/main/java/org/apache/freemarker/core/pluggablebuiltin/impl/DefaultTruncateBuiltinAlgorithm.java b/freemarker-core/src/main/java/org/apache/freemarker/core/pluggablebuiltin/impl/DefaultTruncateBuiltinAlgorithm.java
index 48899e06..2a243713 100644
--- a/freemarker-core/src/main/java/org/apache/freemarker/core/pluggablebuiltin/impl/DefaultTruncateBuiltinAlgorithm.java
+++ b/freemarker-core/src/main/java/org/apache/freemarker/core/pluggablebuiltin/impl/DefaultTruncateBuiltinAlgorithm.java
@@ -91,8 +91,8 @@ public class DefaultTruncateBuiltinAlgorithm extends TruncateBuiltinAlgorithm {
STANDARD_ASCII_TERMINATOR, STANDARD_M_TERMINATOR, true);
/**
- * Instance uses that {@code "[…]"} as the {@code defaultTerminator} constructor argument, which contains
- * ellipsis character ({@code "…"}, U+2026), and thus only works with UTF-8, and the cp125x charsets (like
+ * Instance uses that {@code "[\u2026]"} as the {@code defaultTerminator} constructor argument, which contains
+ * ellipsis character ({@code "\u2026"}, U+2026), and thus only works with UTF-8, and the cp125x charsets (like
* cp1250), and with some other rarely used ones. It does not work (becomes to a question mark) with ISO-8859-x
* charsets (like ISO-8859-1), which are probably the most often used charsets after UTF-8.
*