]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commit
UI: macOS: Fix UTF-8 and UTF-16 conversions in highlighter code
authorAndrej Mihajlov <and@mullvad.net>
Tue, 15 Dec 2020 17:26:55 +0000 (18:26 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 17 Dec 2020 16:36:46 +0000 (17:36 +0100)
commit9269c7c1c13f5d7a70fbef1d9c3fdf0b3e87ca70
tree5f8dade651cf0d82113d1c2a4ee947ff7325a986
parent403ee63615976181dd1efe08a260e1f8d391d5a0
UI: macOS: Fix UTF-8 and UTF-16 conversions in highlighter code

NSString uses UTF-16 internally, while String uses UTF-8 in Swift 5.

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Sources/WireGuardApp/UI/macOS/View/ConfTextStorage.swift
Sources/WireGuardApp/UI/macOS/View/ConfTextView.swift