﻿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
26941	"Remove quotes from uwsgi ""env = LANG=…"" configuration"	Denilson Figueiredo de Sá	Naved Khan	"At the very end of https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/uwsgi/
There is this example line for uwsgi INI configuration:

{{{
env = LANG='en_US.UTF-8'
}}}

After trying to debug my configuration for hours, I found that line is incorrect. Those quotes should be removed. The correct line is:

{{{
env = LANG=en_US.UTF-8
}}}

How to reproduce it:
* Ubuntu 16.04
* Python 3.5.2
* Django 1.9.8
* uwsgi 2.0.12-debian 

And add the following lines to the settings.py:
{{{
import locale
import os
print(os.getenv('LANG', None))
print(locale.getlocale(), locale.getdefaultlocale())
print(locale.getpreferredencoding())
print(sys.getfilesystemencoding())
}}}

The broken configuration prints:
{{{
'en_US.UTF-8'
(None, None) (""'en_US"", ""UTF-8'"")
ANSI_X3.4-1968
ascii
}}}

The correct one prints:
{{{
en_US.UTF-8
('en_US', 'UTF-8') ('en_US', 'UTF-8')
UTF-8
utf-8
}}}"	Bug	closed	Documentation	1.9	Normal	fixed			Unreviewed	0	0	0	0	1	0
