summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/base
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-22 09:52:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-22 16:45:10 +0100
commit7e0108266d7338d14ff953efcce0c019f693dd55 (patch)
tree9619d00452ce60b8d3a12565426f473a2b1fe993 /qadevOOo/runner/base
parent337661a98938a7477f666dff190322d65951cbd2 (diff)
coverity#1326738 Dm: Dubious method used
Change-Id: Ia266e5c1b66e35fdb4c6fdd5816f3b35d54ae1bd
Diffstat (limited to 'qadevOOo/runner/base')
-rw-r--r--qadevOOo/runner/base/java_fat.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/qadevOOo/runner/base/java_fat.java b/qadevOOo/runner/base/java_fat.java
index c5c14768aa40..a0426fdb77ae 100644
--- a/qadevOOo/runner/base/java_fat.java
+++ b/qadevOOo/runner/base/java_fat.java
@@ -21,7 +21,8 @@ import helper.APIDescGetter;
import helper.AppProvider;
import java.io.BufferedReader;
-import java.io.FileReader;
+import java.io.FileInputStream;
+import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import lib.MultiMethodTest;
@@ -392,7 +393,14 @@ public class java_fat implements TestBase {
BufferedReader exclusion = null;
try {
- exclusion = new BufferedReader(new FileReader(url));
+ InputStreamReader reader = new InputStreamReader(new FileInputStream(url), "UTF-8");
+ exclusion = new BufferedReader(reader);
+ } catch (java.io.UnsupportedEncodingException uee) {
+ if (debug) {
+ System.out.println("Couldn't decode file " + url);
+ }
+
+ return entryList;
} catch (java.io.FileNotFoundException fnfe) {
if (debug) {
System.out.println("Couldn't find file " + url);