8078423: [TESTBUG] javax/print/PrintSEUmlauts/PrintSEUmlauts.java relies on system locale
authorskovalev
Fri, 11 Dec 2015 16:35:59 +0300
changeset 34692 cfb24ebd8fb2
parent 34691 468422384cdc
child 34693 5b58b6cdc196
8078423: [TESTBUG] javax/print/PrintSEUmlauts/PrintSEUmlauts.java relies on system locale Reviewed-by: martin
jdk/test/javax/print/PrintSEUmlauts/PrintSEUmlauts.java
--- a/jdk/test/javax/print/PrintSEUmlauts/PrintSEUmlauts.java	Tue Dec 15 10:11:04 2015 +0000
+++ b/jdk/test/javax/print/PrintSEUmlauts/PrintSEUmlauts.java	Fri Dec 11 16:35:59 2015 +0300
@@ -107,14 +107,14 @@
                 System.err.println("printing content");
                 System.err.println(content);
             }
-            throw new RuntimeException("Expected <e4> to represent 'ä' but not found!");
+            throw new RuntimeException("Expected <e4> to represent '\u00e4' but not found!");
         }
         System.err.println("SUCCESS");
     }
 
     public int print(Graphics g, PageFormat pf, int pg) {
        if (pg > 0) return NO_SUCH_PAGE;
-       g.drawString("ä", 100, 100);
+       g.drawString("\u00e4", 100, 100);
        return PAGE_EXISTS;
    }
 }