#11240: Compilemessages fails if a % character is at certain places in the .po 
file
-------------------------------------+-------------------------------------
     Reporter:  tback                |                    Owner:
         Type:  Bug                  |  garcia_marc
    Component:                       |                   Status:  new
  Internationalization               |                  Version:  1.3
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by ramiro):

 Replying to [comment:29 bouke]:
 > Trying to replicate the bug, I've found that `#, python-format` compiles
 just fine with invalid string format specifiers.
 > {{{
 > #, python-format
 > msgid "My project has 20% success"
 > msgstr "No such thing as 20% success"
 > }}}

 These aren't invalid Python format specifiers. "% s" is a valid one. Can
 you re-test with one %-prefixed sequence that is actually invalid?

 >
 > {{{
 > $ xgettext -V
 > xgettext (GNU gettext-tools) 0.18.2
 > }}}
 >
 > Why would this be the case? Is this expected behaviour? If so, replacing
 `%` by `%%` makes no sense and that changeset should be reverted.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11240#comment:30>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.64de4ad270921b70717a91567ec48ff8%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to