This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author higer
Recipients higer
Date 2009-06-18.10:36:11
SpamBayes Score 0.00033641898
Marked as misclassified No
Message-id <1245321374.99.0.206303396049.issue6306@psf.upfronthosting.co.za>
In-reply-to
Content
I just want to compare two files,one from windows and the other from
unix. But I do not want to compare them through reading them line by
line. Then I found there is a filecmp module which is used as file and
directory comparisons. However,when I use two same files (one from
unix,one from windows,the content of them is the same) to test its cmp
function, filecmp.cmp told me false.
Later, I found that windows use '\n\r' as new line flag but unix use
'\n', so filecmp.cmp think that they are different,then return false.

I think maybe it's a bug.
If filecmp.cmp can support two platform files with the same content
and only the diffrent last newline flag, that's would be wonderful.
History
Date User Action Args
2009-06-18 10:36:15higersetrecipients: + higer
2009-06-18 10:36:14higersetmessageid: <1245321374.99.0.206303396049.issue6306@psf.upfronthosting.co.za>
2009-06-18 10:36:12higerlinkissue6306 messages
2009-06-18 10:36:12higercreate