mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
JRE-372 IntelliJ editors silently precompose diacritics
port commit f7facf1b from JBR 9 port from JBR 11 to JBR 15 (cherry picked from commit67b1e552d8) cherry picked from commit51ce1d6427
This commit is contained in:
committed by
Vitaly Provodin
parent
4aee1f6a8d
commit
18b47ed7f5
@@ -29,12 +29,8 @@ package sun.lwawt.macosx;
|
||||
import java.awt.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.net.URL;
|
||||
import java.nio.charset.Charset;
|
||||
import java.text.Normalizer;
|
||||
import java.text.Normalizer.Form;
|
||||
import java.util.*;
|
||||
import java.util.regex.*;
|
||||
import java.awt.datatransfer.*;
|
||||
@@ -159,8 +155,6 @@ public class CDataTransferer extends DataTransferer {
|
||||
// regular string that allows to translate data to target represantation
|
||||
// class by base method
|
||||
format = CF_STRING;
|
||||
} else if (format == CF_STRING) {
|
||||
bytes = Normalizer.normalize(new String(bytes, "UTF8"), Form.NFC).getBytes("UTF8");
|
||||
}
|
||||
|
||||
return super.translateBytes(bytes, flavor, format, transferable);
|
||||
|
||||
Reference in New Issue
Block a user