Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

希望数据的格式能够忽略unix和dos的区别 #15

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment
Open

希望数据的格式能够忽略unix和dos的区别 #15

GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

免不了编辑数据文件的人要在windows下产生数据,
这样出来大data.in和data.out都是带有^M的换行,但是经测这样的
数据会导致PE

故希望数据的格式能够忽略unix和dos的区别


Original issue reported on code.google.com by [email protected] on 6 Nov 2010 at 9:20

@GoogleCodeExporter
Copy link
Author

临时解决方案是用dos2unix(或者fromdos, ubuntu 
10.04+)处理一下输入输出数据。。

在Win下生成数据的时候,fopen用"wb",就不会出现^M的情况~。
~

Original comment by [email protected] on 7 Dec 2010 at 11:22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant