changeset 1193:dbe93cfb9e06

7901382: Result files should be UTF encoded
author shade
date Tue, 14 Apr 2015 20:29:26 +0300
parents 971a0c94beba
children adec482ba705
files jmh-core/src/main/java/org/openjdk/jmh/results/format/ResultFormatFactory.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/results/format/ResultFormatFactory.java	Wed Apr 08 12:40:52 2015 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/results/format/ResultFormatFactory.java	Tue Apr 14 20:29:26 2015 +0300
@@ -45,7 +45,7 @@
             @Override
             public void writeOut(Collection<RunResult> results) {
                 try {
-                    PrintStream pw = new PrintStream(file);
+                    PrintStream pw = new PrintStream(file, "UTF-8");
                     ResultFormat rf = getInstance(type, pw);
                     rf.writeOut(results);
                     pw.flush();