From: Divye K. <div...@gm...> - 2008-09-02 13:43:26
|
On Tue, Sep 2, 2008 at 6:48 PM, Kim Gräsman <kim...@gm...> wrote: > I figured out one workaround -- save test.xml with Unix line-endings > (i.e. LF only). That way Python gets what it expects, and the C++ code > reading the file sees the same thing. > > <snip> > Attached is a patch for the modified test.xml and adjusted > localhost_tests.cpp. Unfortunately, TortoiseSVN seems to have trouble > handling changes only in line endings, so whoever commits this may > need to alter test.xml manually to make it use Unix line-endings. > I would not advise such a commit as it atleast prevents *us* from munging line endings while handling text bodies. Even though it might seem nice to resolve this issue via a file that doesn't have CRLF line breaks, I would suggest that it be resolved by changing the test case to reflect the reduced file size in the case of Windows/Python combination. Divye -- An idealist is one who, on noticing that a rose smells better than a cabbage, concludes that it will also make better soup. H. L. Mencken (1880 - 1956) My official web site: http://people.iitr.ernet.in/shp/061305/ Webmaster: http://www.drkapoorsclinic.com Blog: http://divyekapoor.blogspot.com |