File ticket13803.patch of Package trac

diff --git a/trac/db/postgres_backend.py b/trac/db/postgres_backend.py
index 162a714937..4dad6c3e14 100644
--- trac/db/postgres_backend.py
+++ trac/db/postgres_backend.py
@@ -62,7 +62,7 @@
                         '''.encode('utf-8'),
                         _f.read(), re.VERBOSE)
                     if _match:
-                        _libpq_pathname = _match.group(1)
+                        _libpq_pathname = _match.group(1).decode('utf-8')
                 else:
                     if re.search(r'\0libpq\.dll\0'.encode('utf-8'), _f.read(),
                                  re.IGNORECASE):
openSUSE Build Service is sponsored by