mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
[181784] [archivehandlers] zipped text files have unexpected contents
This commit is contained in:
parent
0e3cfb1675
commit
f675957b70
1 changed files with 2 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
|||
* {Name} (company) - description of contribution.
|
||||
* Xuan Chen (IBM) - [192741] [Archives] Move a folder from within an Archive doesn't work if > 1 level deep
|
||||
* Xuan Chen (IBM) - [194293] [Local][Archives] Saving file second time in an Archive Errors
|
||||
* Xuan Chen (IBM) - [181784] [archivehandlers] zipped text files have unexpected contents
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.services.clientserver.archiveutils;
|
||||
|
@ -595,7 +596,7 @@ public class SystemZipHandler implements ISystemArchiveHandler
|
|||
{
|
||||
if (isText)
|
||||
{
|
||||
String bufString = new String(buf, sourceEncoding);
|
||||
String bufString = new String(buf, 0, numRead, sourceEncoding);
|
||||
byte[] convertedBuf = bufString.getBytes();
|
||||
int newSize = convertedBuf.length;
|
||||
writer.write(convertedBuf, 0, newSize);
|
||||
|
|
Loading…
Add table
Reference in a new issue