﻿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
29061	manage.py makemessages throws syntax error due to incorrectly generated django.pot, again	Kyan	Sarah Boyce	"https://code.djangoproject.com/ticket/28773

I met the same problem, exactly like the ticket above.
I am using Django 2.0.1 and after check the django codes, I confirm that fix is in my django. But that fix doesn't work for me.
(Fix: 
https://github.com/django/django/commit/4f5526e346861c0b2ffa2ea7229747c883e14432)

I changed the file in django/core/management/commands/makemessages.py
{{{
# django/core/management/commands/makemessages.py, line 193
with open(potfile, 'a', encoding='utf-8', newline='\n') as fp:
}}}

from newline=""\n"" to newline=""\r"" and it works.
"	Bug	closed	Core (Management commands)	2.0	Normal	worksforme	gettext, makemessages, Windows	Claude Paroz	Unreviewed	0	0	0	0	0	0
