#20354: `makemessages` crashes when reading non-UTF8 encoded files.
--------------------------------------------+--------------------
Reporter: mrmachine | Owner: nobody
Type: Bug | Status: new
Component: Core (Management commands) | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+--------------------
I have a project with a 3rd party bundled file (`MIT-license.txt`) which
is apparently not encoded with UTF-8 and contains some characters that
makes the `makemessages` management command crash with a
`UnicodeDecodeError`. It outputs the full contents of the file, but not
the file name or location. Not very helpful.
I don't really want to have to search my project for 3rd party non-UTF8
files with a `.txt` or `.html` extension and convert them to UTF8. I'd
rather leave 3rd party files as they are so I can diff and update them
easier.
I also don't really want to do a find across the whole project looking for
a match against the content that caused the error, so I can work out the
filename and explicitly ignore it with a glob pattern.
I'd like Django to simply warn me that the file generated a
`UnicodeDecodeError` and was skipped, then continue processing other
files. If it's important, then I can go and fix it.
--
Ticket URL: <https://code.djangoproject.com/ticket/20354>
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].
For more options, visit https://groups.google.com/groups/opt_out.