Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/LineReader.java @ 590:8cbc2a883d95
Use requested encoding in LineReader
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 29 Apr 2013 17:04:51 +0200 |
parents | 9edfd5a223b8 |
children | 507602cb4fb3 |
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;