]> git.eshelyaron.com Git - emacs.git/commit
Ensure that X selection convertors properly encode returned strings.
authorChong Yidong <cyd@gnu.org>
Tue, 24 Apr 2012 05:34:50 +0000 (13:34 +0800)
committerChong Yidong <cyd@gnu.org>
Tue, 24 Apr 2012 05:34:50 +0000 (13:34 +0800)
commitacb71f1dad7b265eef5c5111bf15c3c612d1b19f
treeef68c0cb9e991bdf7ddf7b0a98515277837fd629
parent9be2fd9b4f96bd00d222ae8ce13f8bb39802f930
Ensure that X selection convertors properly encode returned strings.

Though not itself a regression, this bug was exposed by the support
for MULTIPLE selections, which is new to Emacs 24 (see Bug#11315).

* lisp/select.el (xselect--encode-string): New function, split from
xselect-convert-to-string.
(xselect-convert-to-string): Use it.
(xselect-convert-to-filename, xselect-convert-to-os)
(xselect-convert-to-host, xselect-convert-to-user): Ensure that
returned strings are properly encoded.
lisp/ChangeLog
lisp/select.el