﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
193	Uploaded binary files are corrupted on Windows	Steadicat	Adrian Holovaty	"On Windows, binary files have to be written to disk with the 'b' flag, otherwise all line-endings are converted to CRLF.

Line 979 in source:django/trunk/django/core/meta.py#293 should be changed to:
{{{
#!python

    fp = open(getattr(self, 'get_%s_filename' % field.name)(), 'wb')

}}}

Currently all uploaded files are written to disk as text files. Binary files get corrupted as any CR or LF byte is replaced with a CRLF.
"	defect	closed	Core (Other)		normal	fixed			Unreviewed	0	0	0	0	0	0
