#23010: UnicodeDecodeError in makemessages’ call to os.walk
-------------------------------------+-------------------------------------
Reporter: alub | Owner: claudep
Type: Bug | Status: assigned
Component: Core (Management | Version: 1.7-rc-1
commands) | Resolution:
Severity: Release blocker | Triage Stage: Accepted
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by claudep):
Ah, it's about invalid file names. Python 3 seems to handle this case much
more gracefully.
Unfortunately, the exception location and message don't allow us to tell
the user about the problematic file name.
Even if this is a bit of an edge case, I'm tempted to partially revert the
commit [dbb48d2bb99a5f6] and keep feeding `os.walk` with a bytestring on
Python 2.
The alternative would be to catch this exception and simply inform the
user to check for invalid file names in its file tree.
--
Ticket URL: <https://code.djangoproject.com/ticket/23010#comment:6>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.a884eb92f04799c4169e7dd8d39cdd74%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.