django.core.files.Storage#save does not respect settings.FILE_CHARSET
|Reported by:||anonymous||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Assuming that chunk is not an instance of bytes, this line:
will create a text-mode file without setting the encoding to settings.FILE_CHARSET. As a result, my CI builds were failing with UnicodeEncodeErrors on invocation of manage.py collectstatic (which invoked django-pipeline, which uses this code).