tornadoweb/tornado — pull request #1149 by encorehu (2014-08-19 09:05:28+00:00)
Title: normalize the code param of set_default_locale

when tornado.locale.set_default_locale('en-us') or 'en-US', there is no checking for the locale code, so the translation would failed.