Message89498
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. |
|
Date |
User |
Action |
Args |
2009-06-18 10:36:15 | higer | set | recipients:
+ higer |
2009-06-18 10:36:14 | higer | set | messageid: <1245321374.99.0.206303396049.issue6306@psf.upfronthosting.co.za> |
2009-06-18 10:36:12 | higer | link | issue6306 messages |
2009-06-18 10:36:12 | higer | create | |
|