< prev index next >

test/tools/launcher/I18NJarTest.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 7125442
  27  * @summary ensures a jar path as well as a class located in a path containing
  28  *          unicode characters are launched.

  29  * @compile -XDignore.symbol.file I18NJarTest.java
  30  * @run main/othervm I18NJarTest
  31  */
  32 import java.io.File;
  33 import java.util.Locale;
  34 
  35 /*
  36  * Note 1: the system must have the correct Locale, in order for the test to
  37  * work correctly, on those systems that do not comply, the test will succeed.
  38  * Here are some guidelines to set the locale correctly.
  39  * On Windows: ControlPanel->Regional Settings,
  40  *             ensure that "Japanese" is selected and checked, and in
  41  *             "Code page conversion tables", the following must be checked,
  42  *             932 (ANSI/OEM - Japanese Shift-JIS).
  43  * On Unix: use "locale -a" verify one of these exist ja_JP.UTF-8 or
  44  *          ja_JP.utf8 or ja_JP.ujis, and export one of them with LC_ALL.
  45  *
  46  *
  47  * Note 2: since we need to set the locale, it is safest to execute this test
  48  * in its own VM (othervm mode), such that the ensuing tests can run unperturbed,




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 7125442
  27  * @summary ensures a jar path as well as a class located in a path containing
  28  *          unicode characters are launched.
  29  * @modules java.compiler
  30  * @compile -XDignore.symbol.file I18NJarTest.java
  31  * @run main/othervm I18NJarTest
  32  */
  33 import java.io.File;
  34 import java.util.Locale;
  35 
  36 /*
  37  * Note 1: the system must have the correct Locale, in order for the test to
  38  * work correctly, on those systems that do not comply, the test will succeed.
  39  * Here are some guidelines to set the locale correctly.
  40  * On Windows: ControlPanel->Regional Settings,
  41  *             ensure that "Japanese" is selected and checked, and in
  42  *             "Code page conversion tables", the following must be checked,
  43  *             932 (ANSI/OEM - Japanese Shift-JIS).
  44  * On Unix: use "locale -a" verify one of these exist ja_JP.UTF-8 or
  45  *          ja_JP.utf8 or ja_JP.ujis, and export one of them with LC_ALL.
  46  *
  47  *
  48  * Note 2: since we need to set the locale, it is safest to execute this test
  49  * in its own VM (othervm mode), such that the ensuing tests can run unperturbed,


< prev index next >