Fix clipboard support on Windows #1284

Windows uses UTF-16 for clipboard content. selection-coding-system is
set correctly on Windows systems so we leave it to its default there.
This commit is contained in:
Henrik Lissner 2019-03-28 01:46:58 -04:00
parent 0a1de03ca1
commit 37525bb1bd
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -132,9 +132,9 @@ Doom was setup, which can cause problems.")
(when (fboundp 'set-charset-priority)
(set-charset-priority 'unicode)) ; pretty
(prefer-coding-system 'utf-8) ; pretty
(setq selection-coding-system 'utf-8) ; pretty
(setq locale-coding-system 'utf-8) ; please
(if IS-WINDOWS (set-w32-system-coding-system 'utf-8)) ; with sugar on top
(unless IS-WINDOWS
(setq selection-coding-system 'utf-8)) ; with sugar on top
(setq-default
ad-redefinition-action 'accept ; silence advised function warnings