# HG changeset patch # User xiaofeya # Date 1529982485 25200 # Node ID c9f193a8b671ee6c94549518016251a307eebfe0 # Parent 7284ce75471382922970c29a1473190824290118 8194152: sun/security/tools/jarsigner/AltProvider.java failed on de-DE locale Reviewed-by: naoto Contributed-by: dan.z.zhou@oracle.com diff -r 7284ce754713 -r c9f193a8b671 test/jdk/sun/security/tools/jarsigner/AltProvider.java --- a/test/jdk/sun/security/tools/jarsigner/AltProvider.java Mon Jun 25 20:03:46 2018 -0700 +++ b/test/jdk/sun/security/tools/jarsigner/AltProvider.java Mon Jun 25 20:08:05 2018 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,7 +23,7 @@ /* * @test - * @bug 4906940 8130302 + * @bug 4906940 8130302 8194152 * @summary -providerPath, -providerClass, -addprovider, and -providerArg * @library /test/lib * @modules java.base/jdk.internal.misc @@ -159,6 +159,11 @@ private static OutputAnalyzer tool(String tool, String args) throws Throwable { JDKToolLauncher l = JDKToolLauncher.createUsingTestJDK(tool); + + // Set locale to en-US so that the output are not translated into other languages. + l.addVMArg("-Duser.language=en"); + l.addVMArg("-Duser.country=US"); + for (String a: args.split("\\s+")) { if (a.startsWith("-J")) { l.addVMArg(a.substring(2));