-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8u161
-
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 ----------
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 ----------
- duplicates
-
JDK-8130721 [macos] problem with editing thai in TextArea
-
- Resolved
-
- relates to
-
JDK-8199915 Accent used in Text is corrupted in Windows
-
- Open
-