From abf33d3160d9007b90dccfe4776e7cda639899db Mon Sep 17 00:00:00 2001 From: jomae Date: Sun, 27 Oct 2024 21:14:00 +0000 Subject: [PATCH] 1.6.1dev: fix libpq version detection in postgres_backend.py (closes #13803) Patch by BtbN. git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17861 af82e41b-90c4-0310-8c96-b1721e28e2e2 --- trac/db/postgres_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trac/db/postgres_backend.py b/trac/db/postgres_backend.py index 162a714937..4dad6c3e14 100644 --- a/trac/db/postgres_backend.py +++ b/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):