[Python-apps-commits] r2522 - in packages/eric/trunk/debian/patches (1 file)

gudjon-guest at users.alioth.debian.org gudjon-guest at users.alioth.debian.org
Thu Mar 5 06:08:19 UTC 2009


    Date: Thursday, March 5, 2009 @ 06:08:18
  Author: gudjon-guest
Revision: 2522

Added patch 07.

Added:
  packages/eric/trunk/debian/patches/07_debian_chardet.dpatch

Added: packages/eric/trunk/debian/patches/07_debian_chardet.dpatch
===================================================================
--- packages/eric/trunk/debian/patches/07_debian_chardet.dpatch	                        (rev 0)
+++ packages/eric/trunk/debian/patches/07_debian_chardet.dpatch	2009-03-05 06:08:18 UTC (rev 2522)
@@ -0,0 +1,22 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 07_debian_chardet.dpatch by  <gudjon at gudjon.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Changes eric to use the Debian supplied chardet instead of
+## DP: of the upstream ThirdParty one.
+
+ at DPATCH@
+diff -urNad eric-4.3.0~/eric/Utilities/__init__.py eric-4.3.0/eric/Utilities/__init__.py
+--- eric-4.3.0~/eric/Utilities/__init__.py	2009-01-01 14:49:18.000000000 +0100
++++ eric-4.3.0/eric/Utilities/__init__.py	2009-03-04 12:29:49.000000000 +0100
+@@ -123,8 +123,8 @@
+     if Preferences.getEditor("AdvancedEncodingDetection"):
+         # Try the universal character encoding detector
+         try:
+-            import ThirdParty.CharDet.chardet
+-            guess = ThirdParty.CharDet.chardet.detect(text)
++            import chardet
++            guess = chardet.detect(text)
+             if guess and guess['confidence'] > 0.95 and guess['encoding'] is not None:
+                 codec = guess['encoding'].lower()
+                 return unicode(text, codec), '%s-guessed' % codec


Property changes on: packages/eric/trunk/debian/patches/07_debian_chardet.dpatch
___________________________________________________________________
Name: svn:executable
   + *




More information about the Python-apps-commits mailing list