You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/09/01 09:46:02 UTC

[Bug 53811] exception when using -Dfile.encoding=UTF-8

https://issues.apache.org/bugzilla/show_bug.cgi?id=53811

Abu Abdullah <fa...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Abu Abdullah <fa...@gmail.com> ---
piece of code:

final TarOutputStream tarFile = new TarOutputStream(new
FileOutputStream(pathName));
tarFile.setLongFileMode(TarOutputStream.LONGFILE_GNU);

....

TarEntry tarEntry = new TarEntry(path);
tarEntry.setSize(new File(pre_path+path).length());
tarFile.putNextEntry(tarEntry);
in = new FileInputStream(convertPath(choosedAudioPath)+path);
while((len = in.read(buf)) > 0)
 tarFile.write(buf, 0, len);

tarFile.closeEntry();
in.close();

-- 
You are receiving this mail because:
You are the assignee for the bug.