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

[macOS] Text containing accents is corrupted in Alerts, Text, or TextFlows when wrapping is enabled

XMLWordPrintable

    • x86_64
    • os_x

      FULL PRODUCT VERSION :
      java version "1.8.0_161"
      Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
      Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      macOS 10.13.3

      A DESCRIPTION OF THE PROBLEM :
      When displaying text that contains accented characters, where the accents are combining characters, the text gets corrupted when wrapped.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the attached program

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The text wraps on word boundaries
      ACTUAL -
      The text gets corrupted

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.control.Alert;
      import javafx.scene.control.Alert.AlertType;
      import javafx.stage.Stage;

      public class Test extends Application
      {
          public static void main(
              String[] args)
          {
              launch(args);
          }

          @Override
          public void start(
              Stage primaryStage) throws Exception
          {
              final Alert alert = new Alert(AlertType.CONFIRMATION);
              alert.getDialogPane().setContentText("this is a long path á/it has combining characters çã/and it has some more to make it wrap çã/");
              alert.showAndWait();
          }
      }
      ---------- END SOURCE ----------

            pmangal Priyanka Mangal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: