Hi,Please help to review the fix below for bug https://jbs.oracle.com/bugs/browse/JDK-8022879
http://cr.openjdk.java.net/~ewang/8022879/webrev.00/The test has defect as it wouldn't be executed if the file.encoding is UTF-8 (lots of test machines in nightly are UTF-8), it also doesn't check UTF-16 and UTF-32 which can cause test fail too.
The fix is to check whether the default charset is unicode, if yes, use US-ASCII to test instead.
Thanks, Eric