#29061: manage.py makemessages throws syntax error due to incorrectly generated
django.pot, again
-------------------------------------+-------------------------------------
Reporter: Kyan | Owner: nobody
Type: Bug | Status: new
Component: Core | Version: 2.0
(Management commands) | Keywords: gettext,
Severity: Normal | makemessages, Windows
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
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.
--
Ticket URL: <https://code.djangoproject.com/ticket/29061>
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/050.71cc3700c260988feeec40c86aa99f07%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.