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 ----------