From: Yuuki Harano Date: Sat, 13 Nov 2021 07:25:48 +0000 (+0900) Subject: Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk X-Git-Tag: emacs-29.0.90~3668 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c31d3dacf7f153589b6e7a5f5204937c64e7fd24;p=emacs.git Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk --- c31d3dacf7f153589b6e7a5f5204937c64e7fd24 diff --cc lisp/select.el index a77a005cd3d,43424d94b39..5e7f4a696a3 --- a/lisp/select.el +++ b/lisp/select.el @@@ -312,14 -312,11 +315,12 @@@ the formats available in the clipboard selection-coding-system (pcase data-type ('UTF8_STRING 'utf-8) + ('text/plain\;charset=utf-8 'utf-8) ('COMPOUND_TEXT 'compound-text-with-extensions) ('C_STRING nil) - ('STRING 'iso-8859-1) - (_ (error "Unknown selection data type: %S" - type)))))) - (setq data (if coding (decode-coding-string data coding) - ;; This is for C_STRING case. + ('STRING 'iso-8859-1))))) + (setq data + (cond (coding (decode-coding-string data coding)) ;; We want to convert each non-ASCII byte to the ;; corresponding eight-bit character, which has ;; a codepoint >= #x3FFF00.