[DRE-commits] [SCM] gem2deb.git branch, master, updated. 0.2.16-4-g21b0806

Antonio Terceiro terceiro at debian.org
Fri Jun 15 01:15:12 UTC 2012


The following commit has been merged in the master branch:
commit 5ff94fb88ae06b381b9bef8108dc875ad334123e
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Jun 14 22:03:02 2012 -0300

    Only set Encoding.external_encoding if absolutely needed

diff --git a/lib/gem2deb.rb b/lib/gem2deb.rb
index 2e40d58..b7cb9aa 100644
--- a/lib/gem2deb.rb
+++ b/lib/gem2deb.rb
@@ -13,7 +13,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if defined?(Encoding)
+if defined?(Encoding) && Encoding.default_external.name == 'US-ASCII'
   Encoding.default_external = 'UTF-8'
 end
 

-- 
gem2deb.git



More information about the Pkg-ruby-extras-commits mailing list