1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-12 10:45:37 +02:00

[305218][dstore] problem reading double-byte characters through data socket layer

This commit is contained in:
David McKnight 2010-03-09 19:15:01 +00:00
parent 4f00b48890
commit 595029e132

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2002, 2008 IBM Corporation and others. * Copyright (c) 2002, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -13,6 +13,7 @@
* *
* Contributors: * Contributors:
* David McKnight (IBM) [222168][dstore] Buffer in DataElement is not sent * David McKnight (IBM) [222168][dstore] Buffer in DataElement is not sent
* David McKnight (IBM) [305218][dstore] problem reading double-byte characters through data socket layer
*******************************************************************************/ *******************************************************************************/
package org.eclipse.dstore.internal.core.util; package org.eclipse.dstore.internal.core.util;
@ -30,7 +31,6 @@ import java.net.URL;
import java.util.ArrayList; import java.util.ArrayList;
import org.eclipse.dstore.core.java.IRemoteClassInstance; import org.eclipse.dstore.core.java.IRemoteClassInstance;
import org.eclipse.dstore.core.model.DE;
import org.eclipse.dstore.core.model.DataElement; import org.eclipse.dstore.core.model.DataElement;
import org.eclipse.dstore.core.model.DataStore; import org.eclipse.dstore.core.model.DataStore;
@ -69,7 +69,7 @@ public class Sender implements ISender
try try
{ {
_outFile = new PrintStream(_socket.getOutputStream()); _outFile = new PrintStream(_socket.getOutputStream());
_outData = new BufferedWriter(new OutputStreamWriter(_socket.getOutputStream(), DE.ENCODING_UTF_8)); _outData = new BufferedWriter(new OutputStreamWriter(_socket.getOutputStream()));
_xmlGenerator.setFileWriter(_outFile); _xmlGenerator.setFileWriter(_outFile);
_xmlGenerator.setDataWriter(_outData); _xmlGenerator.setDataWriter(_outData);