mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-81265 Lossy cyrillic encoding (svn + shelve changes)
This commit is contained in:
@@ -36,7 +36,6 @@ import org.tmatesoft.svn.core.wc.SVNWCClient;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
/**
|
||||
* @author yole
|
||||
@@ -131,8 +130,9 @@ public class SvnContentRevision implements ContentRevision, MarkerVcsContentRevi
|
||||
throw new VcsException(e);
|
||||
}
|
||||
final byte[] bytes = buffer.toByteArray();
|
||||
final Charset charset = myFile.getCharset();
|
||||
return charset == null ? bytes : SvnUtil.decode(charset, bytes);
|
||||
/*final Charset charset = myFile.getCharset();
|
||||
return charset == null ? bytes : SvnUtil.decode(charset, bytes);*/
|
||||
return bytes;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -28,7 +28,6 @@ import com.intellij.openapi.vcs.history.VcsRevisionNumber;
|
||||
import com.intellij.openapi.vcs.impl.ContentRevisionCache;
|
||||
import org.jetbrains.idea.svn.SvnBundle;
|
||||
import org.jetbrains.idea.svn.SvnRevisionNumber;
|
||||
import org.jetbrains.idea.svn.SvnUtil;
|
||||
import org.jetbrains.idea.svn.SvnVcs;
|
||||
import org.tmatesoft.svn.core.SVNException;
|
||||
import org.tmatesoft.svn.core.SVNLogEntry;
|
||||
@@ -169,7 +168,8 @@ public class SvnFileRevision implements VcsFileRevision {
|
||||
@Override
|
||||
public byte[] compute() throws VcsException, IOException {
|
||||
byte[] bytes = loadContent();
|
||||
return SvnUtil.decode(myCharset, bytes);
|
||||
return bytes;
|
||||
//return SvnUtil.decode(myCharset, bytes);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user