Author methane
Recipients cypressyew, methane
Date 2018-02-06.09:39:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> But even so, I think this bug is still valid, as the lzh_TW does not exist in the lib at all.

Python doesn't have locale database, while have some aliases.
Python uses libc's locale.

This exception is raised because `_parse_localename` doesn't support
locale name without encoding.

In case of zh_TW, alias is registered:

    'zh_tw':                                'zh_TW.big5',

But I don't think adding `lzh_tw` to alias is good idea.
There are no "one right alias table".  In case of zh_tw, you may
want zh_TW.UTF-8 rather than zh_TW.bit5, don't you?

So I think supporting locale name without encoding is right way.
Maybe, we should return None for encoding in such situation.
Date User Action Args
2018-02-06 09:39:42methanesetrecipients: + methane, cypressyew
2018-02-06 09:39:42methanesetmessageid: <>
2018-02-06 09:39:42methanelinkissue32781 messages
2018-02-06 09:39:42methanecreate