File: unicode-fix.patch

package info (click to toggle)
python-dns 2.3.3-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 216 kB
  • ctags: 319
  • sloc: python: 1,417; makefile: 9
file content (11 lines) | stat: -rw-r--r-- 517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
diff -Nur -x '*.orig' -x '*~' python-dns-2.3.3/DNS/Lib.py python-dns-2.3.3.new/DNS/Lib.py
--- python-dns-2.3.3/DNS/Lib.py	2007-05-22 16:27:40.000000000 -0400
+++ python-dns-2.3.3.new/DNS/Lib.py	2008-09-17 13:13:25.000000000 -0400
@@ -94,6 +94,7 @@
         list = []
         for label in string.splitfields(name, '.'):
             if label:
+                label = label.encode('utf8')
                 if len(label) > 63:
                     raise PackError, 'label too long'
                 list.append(label)