Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 26B4B200BCF for ; Mon, 5 Dec 2016 15:28:01 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2544D160B17; Mon, 5 Dec 2016 14:28:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6D5BA160AF9 for ; Mon, 5 Dec 2016 15:28:00 +0100 (CET) Received: (qmail 13124 invoked by uid 500); 5 Dec 2016 14:27:59 -0000 Mailing-List: contact commits-help@velocity.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@velocity.apache.org Delivered-To: mailing list commits@velocity.apache.org Received: (qmail 13115 invoked by uid 99); 5 Dec 2016 14:27:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2016 14:27:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1BF851803A4 for ; Mon, 5 Dec 2016 14:27:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id sarI0ISBGar3 for ; Mon, 5 Dec 2016 14:27:58 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id B4D005FB5B for ; Mon, 5 Dec 2016 14:27:57 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DAB9FE036E for ; Mon, 5 Dec 2016 14:27:56 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id A0DCB3A0257 for ; Mon, 5 Dec 2016 14:27:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1772673 - in /velocity/site/cms/trunk/content/engine/devel: configuration.mdtext upgrading.mdtext Date: Mon, 05 Dec 2016 14:27:56 -0000 To: commits@velocity.apache.org From: cbrisson@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20161205142756.A0DCB3A0257@svn01-us-west.apache.org> archived-at: Mon, 05 Dec 2016 14:28:01 -0000 Author: cbrisson Date: Mon Dec 5 14:27:55 2016 New Revision: 1772673 URL: http://svn.apache.org/viewvc?rev=1772673&view=rev Log: [site/engine] document UTF-8 as default encoding Modified: velocity/site/cms/trunk/content/engine/devel/configuration.mdtext velocity/site/cms/trunk/content/engine/devel/upgrading.mdtext Modified: velocity/site/cms/trunk/content/engine/devel/configuration.mdtext URL: http://svn.apache.org/viewvc/velocity/site/cms/trunk/content/engine/devel/configuration.mdtext?rev=1772673&r1=1772672&r2=1772673&view=diff ============================================================================== --- velocity/site/cms/trunk/content/engine/devel/configuration.mdtext (original) +++ velocity/site/cms/trunk/content/engine/devel/configuration.mdtext Mon Dec 5 14:27:55 2016 @@ -34,7 +34,7 @@ Below are listed the configuration keys **`input.encoding = UTF-8`** -> Character encoding for input (templates). If not specified, Velocity relies on the 'file.encoding' system property. +> Character encoding for input (templates). UTF-8 if not specified. ## VTL Directives Modified: velocity/site/cms/trunk/content/engine/devel/upgrading.mdtext URL: http://svn.apache.org/viewvc/velocity/site/cms/trunk/content/engine/devel/upgrading.mdtext?rev=1772673&r1=1772672&r2=1772673&view=diff ============================================================================== --- velocity/site/cms/trunk/content/engine/devel/upgrading.mdtext (original) +++ velocity/site/cms/trunk/content/engine/devel/upgrading.mdtext Mon Dec 5 14:27:55 2016 @@ -24,8 +24,8 @@ Read below for futher details. + the reference could be successfully evaluated but resulted in a null value + the reference is tested for validity inside an #if / #elseif statement The 1.x behavior did send invalid reference events in all those cases. -+ The `ResourceLoader` class has been deprecated in favor of a `ResourceLoader2` class, in which the `InputStream ResourceLoader.getResourceStream(String name)` has been replaced by a `Reader ResourceLoader.getResourceReader(String name, String encoding)`. Since `ResourceLoader` inherits from `ResourceLoader2`, the change remains backward compatible, but custom resource loaders should be upgraded to avoid deprecattion warnings. -+ the default encoding ('ISO-8859-1' in 1.x) is now read from the standard `file.encoding` Java system property. ++ The `ResourceLoader` class has been deprecated in favor of a `ResourceLoader2` class, in which the `InputStream ResourceLoader.getResourceStream(String name)` has been replaced by a `Reader ResourceLoader.getResourceReader(String name, String encoding)`. Since `ResourceLoader` inherits from `ResourceLoader2`, the change remains backward compatible, but custom resource loaders should be upgraded to avoid deprecation warnings. ++ the default encoding ('ISO-8859-1' in 1.x) is now UTF-8. + the MethodException event handler now receives an additional argument providing template name and location infos. + all occurences of the class org.apache.commons.collections.ExtendedProperties in the initialization API have been replaced by org.apache.velocity.util.ExtProperties. + the macros are now using a 'call by sharing' convention (which means that all arguments are evaluated once at start, and that the macro receives a copy of the reference to each argument).