changeset 11258:a54fbc80b383

8078423: [TESTBUG] javax/print/PrintSEUmlauts/PrintSEUmlauts.java relies on system locale Reviewed-by: martin
author vlivanov
date Wed, 16 Dec 2015 16:24:02 +0300
parents 1af79934dc16
children 44a6aa58f7b2 16e18e809683
files test/javax/print/PrintSEUmlauts/PrintSEUmlauts.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/print/PrintSEUmlauts/PrintSEUmlauts.java	Thu Dec 03 10:10:13 2015 +0530
+++ b/test/javax/print/PrintSEUmlauts/PrintSEUmlauts.java	Wed Dec 16 16:24:02 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;
    }
 }