mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 06:35:28 +02:00
[350315][dstore] regress change made for bug 305218
This commit is contained in:
parent
836d3eff87
commit
1962ef62c3
2 changed files with 4 additions and 18 deletions
|
@ -17,6 +17,7 @@
|
|||
* David McKnight (IBM) [307541][dstore] fix for Bug 305218 breaks RDz connections
|
||||
* David McKnight (IBM) [343939][dstore][windows] DBCS3.7 DBCS characters are corrupted in Files
|
||||
* David McKnight (IBM) [347412][dstore] Need an option to set TCP NODELAYACKS
|
||||
* David McKnight (IBM) [350315][dstore] regress change made for bug 305218
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.internal.core.util;
|
||||
|
@ -88,14 +89,7 @@ public class Sender implements ISender
|
|||
{
|
||||
_outFile = new PrintStream(_socket.getOutputStream());
|
||||
|
||||
String encoding = DE.ENCODING_UTF_8;
|
||||
if (!_dataStore.isVirtual()){
|
||||
encoding = System.getProperty("file.encoding"); //$NON-NLS-1$
|
||||
String theOS = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
|
||||
if (theOS.startsWith("z") || theOS.startsWith("win")){ //$NON-NLS-1$ //$NON-NLS-2$
|
||||
encoding = DE.ENCODING_UTF_8;
|
||||
}
|
||||
}
|
||||
String encoding = DE.ENCODING_UTF_8;
|
||||
|
||||
OutputStreamWriter writer = new OutputStreamWriter(_socket.getOutputStream(), encoding);
|
||||
_outData = new BufferedWriter(writer);
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
* Noriaki Takatsu (IBM) - [289234][multithread][api] Reset and Restart KeepAliveRequestThread
|
||||
* David McKnight (IBM) - [282364] [dstore][multithread] timer-threads stay active after disconnect
|
||||
* David McKnight (IBM) [343939][dstore][windows] DBCS3.7 DBCS characters are corrupted in Files
|
||||
* David McKnight (IBM) [350315][dstore] regress change made for bug 305218
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.internal.core.util;
|
||||
|
@ -479,17 +480,8 @@ public class XMLparser
|
|||
|
||||
if (offset > 0)
|
||||
{
|
||||
String result = null;
|
||||
|
||||
String result = null;
|
||||
String encoding = DE.ENCODING_UTF_8;
|
||||
if (!_dataStore.isVirtual()){
|
||||
encoding = System.getProperty("file.encoding"); //$NON-NLS-1$
|
||||
String theOS = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
|
||||
if (theOS.startsWith("z") || theOS.startsWith("win")){ //$NON-NLS-1$ //$NON-NLS-2$
|
||||
encoding = DE.ENCODING_UTF_8;
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
result = new String(_byteBuffer, 0, offset, encoding);
|
||||
|
|
Loading…
Add table
Reference in a new issue