Skip to content

Commit 10a7ee4

Browse files
author
Richard Jones
committed
enforce correct encoding of PostgreSQL backend [SF#1374235]
1 parent 220a1fe commit 10a7ee4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Fixed:
2727
are highlighted as required fields (sf bug 1392364)
2828
- french translation updated by Patrick Decat (sf patch 1397059)
2929
- HTTP authorization takes precedence over session cookie (sf bug 1396134)
30+
- enforce correct encoding of PostgreSQL backend (sf bug 1374235)
3031

3132

3233
2005-10-07 0.9.0b1

roundup/backends/back_postgresql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: back_postgresql.py,v 1.30 2005-05-02 05:48:59 richard Exp $
1+
#$Id: back_postgresql.py,v 1.31 2006-01-20 02:27:12 richard Exp $
22
#
33
# Copyright (c) 2003 Martynas Sklyzmantas, Andrey Lebedev <[email protected]>
44
#
@@ -27,7 +27,7 @@ def connection_dict(config, dbnamestr=None):
2727

2828
def db_create(config):
2929
"""Clear all database contents and drop database itself"""
30-
command = 'CREATE DATABASE %s'%config.RDBMS_NAME
30+
command = "CREATE DATABASE %s WITH ENCODING='UNICODE'"%config.RDBMS_NAME
3131
logging.getLogger('hyperdb').info(command)
3232
db_command(config, command)
3333

0 commit comments

Comments
 (0)