#include <iostream>
#include <locale>
using namespace std;
int main()
{
setlocale(LC_ALL,"shit!''");
wchar_t wt[]=L"中";
wcout<<wt;
return 0;
}
the locale or category is invalid, returns a null pointer and the current locale settings of the program are not changed. 可见, 第二个参数可以是任何字符串, 但可以在返回值判断setlocale 是成功还是失败.