Mercurial > hg4j
changeset 590:8cbc2a883d95
Use requested encoding in LineReader
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 29 Apr 2013 17:04:51 +0200 |
parents | c18095eedde0 |
children | e447384f3771 2f1cd1c26de5 |
files | src/org/tmatesoft/hg/internal/LineReader.java |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/LineReader.java Mon Apr 29 17:02:30 2013 +0200 +++ b/src/org/tmatesoft/hg/internal/LineReader.java Mon Apr 29 17:04:51 2013 +0200 @@ -106,7 +106,7 @@ if (encoding == null) { fileReader = new FileReader(file); } else { - fileReader = new InputStreamReader(new FileInputStream(file)); + fileReader = new InputStreamReader(new FileInputStream(file), encoding); } statusFileReader = new BufferedReader(fileReader); String line;