From 37525bb1bdfac1c63b8e661d8e6589a27cc74086 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 28 Mar 2019 01:46:58 -0400 Subject: [PATCH] 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. --- core/core.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.el b/core/core.el index a3264776e..997dada7a 100644 --- a/core/core.el +++ b/core/core.el @@ -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