)]}'
{"stack.sh":[{"author":{"_account_id":8116,"name":"John Dennis","email":"jdennis@redhat.com","username":"jdennis"},"change_message_id":"c44553a9421ffc2358457a3092e2e3e3c4817a26","unresolved":false,"context_lines":[{"line_number":30,"context_line":"# Sanitize language settings to avoid commands bailing out"},{"line_number":31,"context_line":"# with \"unsupported locale setting\" errors."},{"line_number":32,"context_line":"unset LANG"},{"line_number":33,"context_line":"unset LANGUAGE"},{"line_number":34,"context_line":"LC_ALL\u003dC"},{"line_number":35,"context_line":"export LC_ALL"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"bacf61ea_a454f7fd","line":33,"updated":"2016-08-04 16:52:41.000000000","message":"Why override a user\u0027s locale settings? Known bugs? This seems to imply Openstack cannot run correctly with a properly set locale. We\u0027ve been encouraging users to make sure their locale is set properly and have been fixing many locale related bugs to assure Openstack works in the non-English speaking portions of the world.\n\nIf for some reason having LANG set causes a problem in some Openstack component would it not be better to fix that problem rather than mask it? This seems especially important in a developers environment.","commit_id":"9162608d6e1d13a64dd387486faa221c694ba913"},{"author":{"_account_id":8116,"name":"John Dennis","email":"jdennis@redhat.com","username":"jdennis"},"change_message_id":"0a8e0b85ba47e5ac6ad8edf33c9aadab9e0e86fe","unresolved":false,"context_lines":[{"line_number":30,"context_line":"# Sanitize language settings to avoid commands bailing out"},{"line_number":31,"context_line":"# with \"unsupported locale setting\" errors."},{"line_number":32,"context_line":"unset LANG"},{"line_number":33,"context_line":"unset LANGUAGE"},{"line_number":34,"context_line":"LC_ALL\u003dC"},{"line_number":35,"context_line":"export LC_ALL"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"1ac06dbe_60af0b2c","line":33,"in_reply_to":"1ac06dbe_ce3f8985","updated":"2016-08-24 14:44:27.000000000","message":"There are 2 requirements for things to work correctly.\n\n1. The user\u0027s locale must be configured correctly, the most important aspect of this is properly setting the LANG and/or LANGUAGE environment variable because the locale is driven off that environment variable.\n\n2. With Python 2 there must be code which reads the locale and sets the encoding according to the locale for the output stream (typically stdout and stderr). Python 3 does this as part of the language and no programmer intervention is required.\n\nSee these changes for examples of how to get properly encoded values from a terminal and output to a terminal:\n\nhttps://review.openstack.org/342914\nhttps://review.openstack.org/343035","commit_id":"9162608d6e1d13a64dd387486faa221c694ba913"},{"author":{"_account_id":18414,"name":"Shengping Zhang","email":"zhangshengping@unitedstack.com","username":"PeterZhang"},"change_message_id":"3e96b701074e1385da66690ba867004e4eb16f13","unresolved":false,"context_lines":[{"line_number":30,"context_line":"# Sanitize language settings to avoid commands bailing out"},{"line_number":31,"context_line":"# with \"unsupported locale setting\" errors."},{"line_number":32,"context_line":"unset LANG"},{"line_number":33,"context_line":"unset LANGUAGE"},{"line_number":34,"context_line":"LC_ALL\u003dC"},{"line_number":35,"context_line":"export LC_ALL"},{"line_number":36,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"1ac06dbe_ce3f8985","line":33,"in_reply_to":"bacf61ea_a454f7fd","updated":"2016-08-23 01:30:31.000000000","message":"I get this problem in Gnocchi, it works well if I set encode(\u0027utf-8\u0027), \n\nhowever when it runs Jenkins or Tox, it fails. In both situations, the environment locale look all the same.  \n\ncould you please give me some hints? what goes wrong here?\n\ncheck this: https://review.openstack.org/#/c/356826/\n\nthere are some math marks.","commit_id":"9162608d6e1d13a64dd387486faa221c694ba913"}]}
