Ticket #5877: patch-django-core-management-base_unicode_printing_#5877.patch
File patch-django-core-management-base_unicode_printing_#5877.patch, 798 bytes (added by , 17 years ago) |
---|
-
django/core/management/base.py
1 1 import os 2 2 import sys 3 import codecs 3 4 from optparse import make_option, OptionParser 4 5 5 6 import django … … 88 89 from django.db import connection 89 90 if connection.ops.start_transaction_sql(): 90 91 print self.style.SQL_KEYWORD(connection.ops.start_transaction_sql()) 91 print output 92 scrout = codecs.getwriter('utf8')(sys.stdout) 93 scrout.write(output) 92 94 if self.output_transaction: 93 95 print self.style.SQL_KEYWORD("COMMIT;") 94 96 except CommandError, e: