Fix bugs caused by encoding in the DMD compiler under Windows
mm
comatmsam at sina.com
Wed May 10 19:53:02 UTC 2023
extern (C) int main(int argc, char** argv)
{
argv[i] ///编码 == 当前系统编码
argv[i] /// Encoding ==Current system code
这种风格不是utf8
This style is not utf8
}
extern (D) int main(string[] argv)
{
argv[i] //编码 == utf8
argv[i] //Encoding ==utf8
只有这种风格 才是utf8
Only this style is utf8
}
extern (C++) int main(int argc, char** argv)
{
argv[i] //不是编码问题了,是数据不可用 .
//It's not a coding issue anymore, it's data unavailable
}
你肯定没有预料到 事情如上
You certainly didn't expect things to go like this
dmd使用的是
DMD uses
extern (C) int main(int argc, char** argv)
argv //Encoding == Current system code
所以会出错 So there will be an error
More information about the Digitalmars-d-ide
mailing list