Univention Bugzilla – Attachment 3841 Details for
Bug 23289
univention-connector-list-rejected output encoding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
encode utf8
univention-adsearch_utf8.patch (text/plain), 1.12 KB, created by
Janis Meybohm
on 2011-11-21 16:13:37 CET
(
hide
)
Description:
encode utf8
Filename:
MIME Type:
Creator:
Janis Meybohm
Created:
2011-11-21 16:13:37 CET
Size:
1.12 KB
patch
obsolete
>--- /usr/sbin/univention-adsearch 2011-03-22 10:40:27.000000000 +0100 >+++ /tmp/univention-adsearch 2011-11-21 16:09:32.157059722 +0100 >@@ -101,7 +101,7 @@ > print "ERROR: no filter given" > usage() > sys.exit(1) >-filter_tmp = sys.argv[oiterator].decode('latin') >+filter_tmp = sys.argv[oiterator].decode('utf8') > > if len(sys.argv) > oiterator+1: > filter_attributes = sys.argv[oiterator+1].split(',') >@@ -183,7 +183,7 @@ > > print "#" > print "# univention-adsearch" >-print "# filter: %s" % filter.encode('latin') >+print "# filter: %s" % filter.encode('utf8') > print "#" > > for r in res: >@@ -191,7 +191,7 @@ > n_referrals += 1 > continue > print "" >- print "%s: %s"%('DN',unicode(r[0],'utf8').encode('latin')) >+ print "%s: %s"%('DN',unicode(r[0],'utf8').encode('utf8')) > for key in r[1]: > if key in ["objectGUID",'ipsecData','repsFrom','replUpToDateVector']: > print "%s: %s"%(key,r[1][key]) >@@ -212,7 +212,7 @@ > print "%s: %s"%(key,sid) > else: > try: >- print "%s: %s"%(key,unicode(val,'utf8').encode('latin')) >+ print "%s: %s"%(key,unicode(val,'utf8').encode('utf8')) > except: > print "failed: %s"%key >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 23289
:
3841
|
6027