Skip to content

Commit

Permalink
CLDR-15323 Fix fileutilities for non-Windows (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored Feb 8, 2022
1 parent 8fc5e68 commit e995b07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public static BufferedReader openFile(String directory, String file, Charset cha
if (directory.equals("")) {
return new BufferedReader(new InputStreamReader(new FileInputStream(new File(file)), charset));
} else {
return new BufferedReader(new InputStreamReader(new FileInputStream(new File(file, directory)), charset));
return new BufferedReader(new InputStreamReader(new FileInputStream(new File(directory, file)), charset));
}
} catch (FileNotFoundException e) {
throw new ICUUncheckedIOException(e); // handle dang'd checked exception
Expand Down

0 comments on commit e995b07

Please sign in to comment.