Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8068169

Printing national characters, e g, Å, Ä and Ö, produces garbage on PS printers.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 8u20, 8u25, 9
    • client-libs
    • 2d
    • x86_64
    • linux

    Description

      FULL PRODUCT VERSION :
      java version "1.8.0_25"
      Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
      Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Linux 3.11.10-21-desktop #1 SMP PREEMPT Mon Jul 21 15:28:46 UTC 2014 (9a9565d) x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      When printing a Printable to a PrinterJob attached to a postscript printer, any national characters such as Å, Ä or Ö, painted by the printable on the supplied Graphics come out as as garbage. Some encoding bug probably.

      If I chose to print to a file, a PS-file is produces. If I open it in e g Ocular the natinal characters are all wrong.

      REGRESSION. Last worked in version 7u51

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_51"
      Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
      Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a printable that draws "ÅÄÖåäö" on the graphics supplied by print.

      Create a job and print:
      PrinterJob job = PrinterJob.getPrinterJob();
      job.setPrintable(printable);
      job.print();


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      ÅÄÖåäö
      ACTUAL -
      Garbage

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Issue Links

          Activity

            People

              aivanov Alexey Ivanov
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: