aboutsummaryrefslogtreecommitdiff
path: root/rpki
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2015-11-24 20:49:39 +0000
committerRob Austein <sra@hactrn.net>2015-11-24 20:49:39 +0000
commit7448eef3cf7c10ce2a3293907b0fa3739c26310d (patch)
tree56b658dfc6735079640cd9bf964560c6206dc7cd /rpki
parent1f55ae0e36e228ee796358158a0882383a932442 (diff)
Add charset=latin1 kludge for GUI too. Fixes #782.
svn path=/trunk/; revision=6192
Diffstat (limited to 'rpki')
-rw-r--r--rpki/gui/default_settings.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpki/gui/default_settings.py b/rpki/gui/default_settings.py
index 02987bb8..a30b0362 100644
--- a/rpki/gui/default_settings.py
+++ b/rpki/gui/default_settings.py
@@ -76,8 +76,14 @@ DATABASES = {
# removing this after the syncdb is performed as an optimization,
# but there isn't an easy way to do this automatically.
+ # Setting charset to latin1 is a disgusting kludge, but without
+ # this MySQL 5.6 (and, proably, later) gets tetchy about ASN.1
+ # DER stored in BLOB columns not being well-formed UTF8 (sic).
+ # If you know of a better solution, tell us.
+
'OPTIONS': {
'init_command': 'SET storage_engine=INNODB',
+ 'charset': 'latin1',
}
}
}