commit/galaxy-central: jmchilton: Allow override of util.unicodify default encoding with GALAXY_DEFAULT_ENCODING.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/bba4f8883afb/ Changeset: bba4f8883afb User: jmchilton Date: 2013-12-06 16:45:59 Summary: Allow override of util.unicodify default encoding with GALAXY_DEFAULT_ENCODING. See mailing list for more information : http://dev.list.galaxyproject.org/error-with-unicode-output-tp4662783.html. It would be more correct to add a database_encoding option to universe_wsgi.ini, but that would be more work and the even correcter approach is for deployers to configure their databases to store UTF-8 data. Affected #: 1 file diff -r a29d54619813d5da992b897557162a360b8d610c -r bba4f8883afb62b142dd9ffa229db387f7e9f857 lib/galaxy/util/__init__.py --- a/lib/galaxy/util/__init__.py +++ b/lib/galaxy/util/__init__.py @@ -37,7 +37,7 @@ gzip_magic = '\037\213' bz2_magic = 'BZh' -DEFAULT_ENCODING = 'utf-8' +DEFAULT_ENCODING = os.environ.get('GALAXY_DEFAULT_ENCODING', 'utf-8') NULL_CHAR = '\000' BINARY_CHARS = [ NULL_CHAR ] Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org