This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2008-07-06.15:46:46
SpamBayes Score 0.009916355
Marked as misclassified No
Message-id <1215359208.89.0.118295330664.issue3302@psf.upfronthosting.co.za>
In-reply-to
Content
msgid of gettext(), dgettext(), dcgettext() C functions can not be 
NULL (domainname can be NULL): "import locale; locale.gettext(None)" 
generates a segfault.

domainname argument of bindtextdomain() have to be a non empty 
string: "locale.bindtextdomain(NULL, NULL)" or 
locale.bindtextdomain('', NULL)" generates an OSError(0).

Attached patch fixes the two bugs.
History
Date User Action Args
2008-07-06 15:46:49vstinnersetspambayes_score: 0.00991635 -> 0.009916355
recipients: + vstinner
2008-07-06 15:46:48vstinnersetspambayes_score: 0.00991635 -> 0.00991635
messageid: <1215359208.89.0.118295330664.issue3302@psf.upfronthosting.co.za>
2008-07-06 15:46:48vstinnerlinkissue3302 messages
2008-07-06 15:46:47vstinnercreate