﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10447	feedgenerator will raise exception if we set locale.	bear330	nobody	"Hi,

If I do this before:


{{{
import locale
locale.setlocale(locale.LC_ALL, '')
}}}

Then the feedgenerator will raise UnicodeDecodeError because this line (207):

{{{
handler.addQuickElement(u""lastBuildDate"", rfc2822_date(self.latest_post_date()).decode('utf-8'))
}}}

This is because rfc2822_date will get 
'\xacP\xb4\xc1\xa4@, 09 \xa4T\xa4\xeb 2009 22:21:17 -0000'
in my machine (my locale is 'Chinese_Taiwan.950')

It can't be decode('utf-8')

Thanks."		closed	contrib.syndication	1.0		fixed	unicode feed	Roman Barczyński	Accepted	1	0	0	0	0	0
