#23265: Django don't start on French Windows with Python 2.7 (but only in February, August and December!) -------------------------------------+------------------------------------- Reporter: SpaceFox | Owner: nobody Type: Uncategorized | Status: new Component: Core (Management | Version: 1.6 commands) | Resolution: Severity: Normal | Triage Stage: Keywords: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by claudep): SpaceFox, could you test if this patch solves your issue? {{{ diff --git a/django/core/management/commands/runserver.py b/django/core/management/commands/runserver.py index 503cff2..dfff57d 100644 --- a/django/core/management/commands/runserver.py +++ b/django/core/management/commands/runserver.py @@ -11,6 +11,7 @@ import socket from django.core.management.base import BaseCommand, CommandError from django.core.servers.basehttp import run, get_internal_wsgi_application from django.utils import autoreload +from django.utils.encoding import get_system_encoding from django.utils import six naiveip_re = re.compile(r"""^(?: @@ -101,7 +102,7 @@ class Command(BaseCommand): self.validate(display_num_errors=True) now = datetime.now().strftime('%B %d, %Y - %X') if six.PY2: - now = now.decode('utf-8') + now = now.decode(get_system_encoding()) self.stdout.write(( "%(started_at)s\n" }}} -- Ticket URL: <https://code.djangoproject.com/ticket/23265#comment:5> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.63ff103c2c78887d703fef874db1078e%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.