On Thu, 16 Dec 2021 15:53:26 GMT, Dmitry Batrak <dbat...@openjdk.org> wrote:

> The fix just removes the explicit normalization of text obtained from system 
> clipboard in JDK code, as I've found no
> good justification for such a normalization, at least for the latest macOS 
> version.
> The same fix was performed in JetBrains Runtime by a user's request more than 
> 4 years ago, and we didn't receive any
> related complaints from our users ever since.

The test doesn't check the normalization logic in `CDataTransferer.m`, it 
actually tests that the string is unchanged during transfer through clipboard. 
The test just prepares the initial string so that it won't be affected by the 
normalization.
So it looks like that normalization in test was added to make the test pass on 
all platforms, including macOS.
The test would pass even after the change I've made to `CDataTransferer.m`. I'm 
making a modification to it, so that it would now verify that even a 
non-normalized string passes through clipboard unchanged.
The test keeps passing on Windows, Linux and macOS after the change.

-------------

PR: https://git.openjdk.java.net/jdk/pull/6866

Reply via email to