vs2008 std::fstream以及std::ifstream打开中文路径名失败的解决方法

vs2003都没有此问题,vs2008就有此问题,解决方法如下:

// 支持中文文件目录
std::locale loc = std::locale::global(std::locale(""));

你可能感兴趣的:(vs2008 std::fstream以及std::ifstream打开中文路径名失败的解决方法)