View | Details | Raw Unified | Return to bug 181784
Collapse All | Expand All

(-)clientserver/org/eclipse/rse/services/clientserver/archiveutils/SystemZipHandler.java (-1 / +2 lines)
Lines 15-20 Link Here
15
 * {Name} (company) - description of contribution.
15
 * {Name} (company) - description of contribution.
16
 * Xuan Chen        (IBM)        - [192741] [Archives] Move a folder from within an Archive doesn't work if > 1 level deep
16
 * Xuan Chen        (IBM)        - [192741] [Archives] Move a folder from within an Archive doesn't work if > 1 level deep
17
 * Xuan Chen        (IBM)        - [194293] [Local][Archives] Saving file second time in an Archive Errors
17
 * Xuan Chen        (IBM)        - [194293] [Local][Archives] Saving file second time in an Archive Errors
18
 * Xuan Chen        (IBM)        - [181784] [archivehandlers] zipped text files have unexpected contents
18
 *******************************************************************************/
19
 *******************************************************************************/
19
20
20
package org.eclipse.rse.services.clientserver.archiveutils;
21
package org.eclipse.rse.services.clientserver.archiveutils;
Lines 595-601 Link Here
595
				{
596
				{
596
					if (isText)
597
					if (isText)
597
					{
598
					{
598
						String bufString = new String(buf, sourceEncoding);
599
						String bufString = new String(buf, 0, numRead, sourceEncoding);
599
						byte[] convertedBuf = bufString.getBytes();
600
						byte[] convertedBuf = bufString.getBytes();
600
						int newSize = convertedBuf.length;
601
						int newSize = convertedBuf.length;
601
						writer.write(convertedBuf, 0, newSize);
602
						writer.write(convertedBuf, 0, newSize);

Return to bug 181784