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

[macOS] Unicode Block in which garbling occurs

XMLWordPrintable

    • x86_64
    • os_x

      FULL PRODUCT VERSION :
      java version "9.0.4"
      Java(TM) SE Runtime Environment (build 9.0.4+11)
      Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      macOS Sierra

      A DESCRIPTION OF THE PROBLEM :
      The following Unicode Block characters garbled.

      * Supplemental Punctuation(U+2E00 - U+2E7F)
      * Combining Diacritical Marks Supplement (U+1DC0 - U+1DFF)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run test code

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Characters rendered correctly.
      ACTUAL -
      Characters are not rendered correctly.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
                                                                                                                                                                             
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.control.ScrollPane;
      import javafx.scene.layout.BorderPane;
      import javafx.scene.layout.VBox;
      import javafx.scene.text.Text;
      import javafx.stage.Stage;
                                                                                                                                                                             
      public class UnicodeTest extends Application {
                                                                                                                                                                             
      private static final String[] TEST_ARRAY = {
      // LEFT LOW PARAPHRASE BRACKET
      "\u2E1C",
      // RIGHT LOW PARAPHRASE BRACKET
      "\u2E1D",
      // COMBINING MACRON-ACUTE
      "\u1DC4",
      // COMBINING GRAVE-MACRON
      "\u1DC5",
      // COMBINING MACRON-GRAVE
      "\u1DC6",
      // COMBINING ACUTE-MACRON
      "\u1DC7",
      // COMBINING GRAVE-ACUTE-GRAVE
      "\u1DC8",
      // COMBINING ACUTE-GRAVE-ACUTE
      "\u1DC9",
                                                                                                                                                                             
      //etc...
      // Supplemental Punctuation(U+2E00 - U+2E7F)
      // Combining Diacritical Marks Supplement (U+1DC0 - U+1DFF)
      };
                                                                                                                                                                             
      @Override
      public void start(Stage primaryStage) {
      VBox vbox = new VBox();
      BorderPane root = new BorderPane(new ScrollPane(vbox));
      Scene scene = new Scene(root, 100, 400);
                                                                                                                                                                             

      for (String c : TEST_ARRAY) {
      Text text = new Text(c);
      vbox.getChildren().add(text);
      }
                                                                                                                                                                             
      primaryStage.setScene(scene);
      primaryStage.show();
      }
                                                                                                                                                                             
      public static void main(String[] args) {
      Application.launch(args);
      }
      }
      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: