Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 33272 Details for
Bug 72995
When comparing with CVS we see a wrong encoding
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch correcting bad encoding when comparing
patch.txt (text/plain), 1.64 KB, created by
Gilles Querret
on 2006-01-19 11:37:03 EST
(
hide
)
Description:
Patch correcting bad encoding when comparing
Filename:
MIME Type:
Creator:
Gilles Querret
Created:
2006-01-19 11:37:03 EST
Size:
1.64 KB
patch
obsolete
>Index: compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.compare/compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java,v >retrieving revision 1.147 >diff -u -r1.147 TextMergeViewer.java >--- compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java 21 Jun 2005 12:37:18 -0000 1.147 >+++ compare/org/eclipse/compare/contentmergeviewer/TextMergeViewer.java 19 Jan 2006 16:28:27 -0000 >@@ -1667,15 +1667,15 @@ > } > > // set new documents >- setDocument(fLeft, 'L', left); >+ setDocument(fLeft, 'L', left, null); > fLeftLineCount= fLeft.getLineCount(); > fLeftEncoding= getEncoding(left); > >- setDocument(fRight, 'R', right); >+ setDocument(fRight, 'R', right, fLeftEncoding); > fRightLineCount= fRight.getLineCount(); >- fRightEncoding= getEncoding(right); >+ fRightEncoding= getEncoding(fLeftEncoding); > >- setDocument(fAncestor, 'A', ancestor); >+ setDocument(fAncestor, 'A', ancestor, fLeftEncoding); > > updateHeader(); > updateControls(); >@@ -1899,7 +1899,7 @@ > /* > * Returns true if a new Document could be installed. > */ >- private boolean setDocument(MergeSourceViewer tp, char type, Object o) { >+ private boolean setDocument(MergeSourceViewer tp, char type, Object o, String encoding) { > > if (tp == null) > return false; >@@ -1922,7 +1922,7 @@ > String s= null; > > try { >- s= Utilities.readString(sca); >+ s= (encoding == null ? Utilities.readString(sca) : Utilities.readString(sca.getContents(), encoding)); > } catch (CoreException ex) { > setError(type, ex.getMessage()); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 72995
:
16234
|
33272
|
33341