[Reportbug-maint] Bug#848692: reportbug fails with punctuation in name

brian m. carlson sandals at crustytoothpaste.net
Thu Dec 22 02:24:03 UTC 2016


package reportbug
retitle 848692 reportbug fails with punctuation in name
severity 848692 important
kthxbye

This issue hit me as well, seeing as I use a middle initial, and
therefore have a period in my realname field.  I'm raising the severity
to important, although I could argue based on one's inability to choose
one's name, this could be grave.

The issue is this code:

    if re.match(r'[\w\s]+$', realname):
        return '%s <%s>' % (realname, email)

    addr = email.utils.formataddr((realname, email))

We don't take the branch since “.” (and “'”, etc.) are not in [\w\s],
and then we throw an exception as email is not the module imported at
the top, but the local variable.  As the original reporter and I
discovered, omitting the punctuation from one's name makes things work,
as the branch is then taken.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20161222/a4176c7b/attachment.sig>


More information about the Reportbug-maint mailing list