Summary: | TextStreamMerger always uses '\n' as line ending | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Bogdan Gheorghe <gheorghe> | ||||
Component: | Compare | Assignee: | Andre Weinand <andre_weinand> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | major | ||||||
Priority: | P3 | CC: | daniel_megert | ||||
Version: | 3.2 | ||||||
Target Milestone: | 3.2 M4 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Bogdan Gheorghe
2005-11-07 16:52:45 EST
Created attachment 30783 [details]
Patch to IStreamMerger
Here's a patch to IStreamMerger that makes it use the platform line ending instead of just '\n'. This may not be the proper behavior either though. It may be better to use whatever line ending is used in the incoming streams or, if they are not the same, use the Eclipse platform new file line ending.
Moving to Compare. Andre, was there a reason that the outgoing line-ending of the TextStreamMerge was just '\n'? P.S. The patch is for TextStreamMerger, not IStreamMerger modified patch released and tests adapted Start verifying... The patch improves the situation but still has problems when the files are checked out with a line delimiter that's different from System.getProperty("line.separator"). This is true (as stated in comment 1). The purpose of the patch was to make the TextStreamMerger usable on non-*nix platforms for most users. It does not appear that this is in the M4 test candidate build. The compare.map file has not been updated. In build now. |