RFR: 8278908: [macOS] Unexpected text normalization on pasting from clipboard
Dmitry Batrak
dbatrak at openjdk.java.net
Fri Dec 24 12:36:15 UTC 2021
On Thu, 16 Dec 2021 15:53:26 GMT, Dmitry Batrak <dbatrak at 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.
Sure, I just don't know a 'functional' enough approach to check it, like I've done it for text copy/paste.
If you mean checking the normalization macOS APIs use when returning filenames, it definitely not NFC. At least, after I rename a file using Finder, its filename is returned in NFD (decomposed) form by both file access APIs (e.g. `readdir` from C library or `NSFileManager` from Foundation framework) and when read from clipboard (for `NSFilenamesPboardType` data type).
-------------
PR: https://git.openjdk.java.net/jdk/pull/6866
More information about the client-libs-dev
mailing list