[sysadmin-bin] handle-ldap-modules: encode tables to utf-8 when printing to stdout
- From: Olav Vitters <ovitters src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] handle-ldap-modules: encode tables to utf-8 when printing to stdout
- Date: Sat, 5 Mar 2011 12:46:42 +0000 (UTC)
commit 23e408e689aec7a7d9d0ea1dfc4b3d5082167eaa
Author: Olav Vitters <olav vitters nl>
Date: Sat Mar 5 13:46:22 2011 +0100
handle-ldap-modules: encode tables to utf-8 when printing to stdout
handle-ldap-modules | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/handle-ldap-modules b/handle-ldap-modules
index 7dcfe10..65f3c6e 100755
--- a/handle-ldap-modules
+++ b/handle-ldap-modules
@@ -563,7 +563,7 @@ def print_invalid(INVALID, filter_valid_uid=None, header=None):
table.add_row([uid, email, m.UID_TO_MAIL.get(uid, '???'), name, ", ".join(INVALID[uid][invalid_data])])
if have_data:
- print table.draw()
+ print table.draw().encode("utf-8")
return have_data
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]