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 5677 Details for
Bug 39321
[CVS Core] Character set of commitment comment do not equal character set of source code.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
fit the encoding of commitment comment to source code
Connection.java.patch (text/plain), 1.28 KB, created by
tokkuri
on 2003-08-07 13:26:50 EDT
(
hide
)
Description:
fit the encoding of commitment comment to source code
Filename:
MIME Type:
Creator:
tokkuri
Created:
2003-08-07 13:26:50 EDT
Size:
1.28 KB
patch
obsolete
>--- Connection.java.old Sat Jun 28 05:00:38 2003 >+++ Connection.java Fri Aug 08 02:18:25 2003 >@@ -16,3 +16,5 @@ > import java.io.OutputStream; >+import java.io.UnsupportedEncodingException; > >+import org.eclipse.core.resources.ResourcesPlugin; > import org.eclipse.core.runtime.IProgressMonitor; >@@ -49,4 +51,6 @@ > private byte[] readLineBuffer = new byte[256]; >+ private String encoding; > > public Connection(ICVSRepositoryLocation cvsroot, IServerConnection serverConnection) { >+ encoding = ResourcesPlugin.getEncoding(); > fCVSRoot = cvsroot; >@@ -148,3 +152,3 @@ > } >- String result = new String(readLineBuffer, 0, index); >+ String result = new String(readLineBuffer, 0, index, encoding); > if (Policy.DEBUG_CVS_PROTOCOL) System.out.println(result); >@@ -177,3 +181,8 @@ > public void write(String s) throws CVSException { >- write(s.getBytes(), false); >+ try { >+ write(s.getBytes(encoding), false); >+ } >+ catch (UnsupportedEncodingException e) { >+ throw new CVSCommunicationException(e); >+ } > } >@@ -190,3 +199,8 @@ > public void writeLine(String s) throws CVSException { >- write(s.getBytes(), true); >+ try { >+ write(s.getBytes(encoding), true); >+ } >+ catch (UnsupportedEncodingException e) { >+ throw new CVSCommunicationException(e); >+ } > }
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 39321
: 5677