3.1.1版本bug报告

此版本的cocos2d\cocos\platform\winrt目录下的const char * Application::getCurrentLanguageCode()函数存在错误
const char * Application::getCurrentLanguageCode()
{
static std::string code = “”;

wchar_t localeName = {0};
if (GetUserDefaultLocaleName(localeName, LOCALE_NAME_MAX_LENGTH))
{
    wchar_t* primary = wcstok(localeName, L"-");
    std::string code = CCUnicodeToUtf8(primary);
}
else
{
    code = "en";
}

return code.c_str();

}
code在if里面重定义,导致永远返回en,