BUG, BUG, 大BUG
C盘下有一个目录叫 "测试 ",里面有一个文件叫 "test.txt "
std::ifstream ifs( "C:\\测试\\test.txt ");
if(!ifs)
{
std::cout < < "绝对会显示这个输出 " < <std::endl;
}
发现里面有这样的转换
/* C locale: easy and fast */
while (count < n)
{
*pwcs = (wchar_t) ((unsigned char)s[count]);
if (!s[count])
return count;
count++;
pwcs++;
}
return count;
MS太无敌了..有损标准库的嫌疑.
[解决办法]
哦,知道了。。
[解决办法]
up
[解决办法]
up
[解决办法]
有啥问题?/* C locale: easy and fast */ 就是说那种 locale= "C " 的东西——或者, "POSIX " ——除了 ASCII,啥编码也不支持的。Every byte is an character,这样转换自然是无伤大雅的。
鄙视楼主 ^_^ 还是做小鸡这个很有前途的职业吧……
[解决办法]
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=371229&SiteID=1
setlocale(LC_ALL, "Chinese-simplified ");
[解决办法]
接分。
[解决办法]
不明白楼主说的什么~
[解决办法]
jf