cvs: pear-core /PEAR/PackageFile/Generator v2.php

From: Date: Sat, 12 Jul 2008 14:24:55 +0000
Subject: cvs: pear-core /PEAR/PackageFile/Generator v2.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7639@lists.php.net to get a copy of this message
dufuz Sat Jul 12 14:24:55 2008 UTC Modified files: /pear-core/PEAR/PackageFile/Generator v2.php Log: Bug #14274 PEAR packager mangles package.xml encoding, then complains about it Now we have fixed both proper detection of various version of the xml dec and also if we decide to change the encoding for the xml file we do output it in the same encoding format http://cvs.php.net/viewvc.cgi/pear-core/PEAR/PackageFile/Generator/v2.php?r1=1.40&r2=1.41&diff_format=u Index: pear-core/PEAR/PackageFile/Generator/v2.php diff -u pear-core/PEAR/PackageFile/Generator/v2.php:1.40 pear-core/PEAR/PackageFile/Generator/v2.php:1.41 --- pear-core/PEAR/PackageFile/Generator/v2.php:1.40 Sat Jul 12 14:22:21 2008 +++ pear-core/PEAR/PackageFile/Generator/v2.php Sat Jul 12 14:24:55 2008 @@ -16,7 +16,7 @@ * @author Stephan Schmidt (original XML_Serializer code) * @copyright 1997-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: v2.php,v 1.40 2008/07/12 14:22:21 dufuz Exp $ + * @version CVS: $Id: v2.php,v 1.41 2008/07/12 14:24:55 dufuz Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -107,6 +107,7 @@ function PEAR_PackageFile_Generator_v2(&$packagefile) { $this->_packagefile = &$packagefile; + $this->_defaultOptions['encoding'] = $this->_packagefile->encoding; } /** @@ -894,7 +895,7 @@ // | Authors: Stephan Schmidt <schst@php-tools.net> | // +----------------------------------------------------------------------+ // -// $Id: v2.php,v 1.40 2008/07/12 14:22:21 dufuz Exp $ +// $Id: v2.php,v 1.41 2008/07/12 14:24:55 dufuz Exp $ /** * error code for invalid chars in XML name

« previous php.pear.core (#7639) next »