New submission from STINNER Victor <[EMAIL PROTECTED]>: 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. ---------- components: Extension Modules files: locale_none.patch keywords: patch messages: 69335 nosy: haypo severity: normal status: open title: segfault on gettext(None) versions: Python 2.6 Added file: http://bugs.python.org/file10831/locale_none.patch _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3302> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com