all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: master 6011d39b6a: Fix drag-and-drop of files with multibyte filenames
@ 2022-06-05  9:21 Eli Zaretskii
  2022-06-05 10:00 ` Po Lu
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2022-06-05  9:21 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> --- a/lisp/select.el
> +++ b/lisp/select.el
> @@ -630,20 +630,20 @@ two markers or an overlay.  Otherwise, it is nil."
>          (xselect--encode-string 'TEXT (buffer-file-name (nth 2 value))))
>      (if (and (stringp value)
>               (file-exists-p value))
> -        (xselect--encode-string 'TEXT (expand-file-name value)
> -                                nil t)
> +        ;; Motif expects this to be STRING, but it treats the data as
> +        ;; a sequence of bytes instead of a Latin-1 string.
> +        (cons 'STRING (encode-coding-string (expand-file-name value)
> +                                            'raw-text-unix))

I don't think I understand this change.  raw-text basically doesn't do
any conversion, except if the text includes raw bytes.  Is that the
problem here, and if so, how come a file name can include raw bytes in
its name?  And what does "Motif expects this to be STRING, but it
treats the data as a sequence of bytes instead of a Latin-1 string"
mean in this context?  The difference between raw bytes and Latin-1
strings is only meaningful to Emacs; how does Motif distinguish
between them?



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-05 13:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-05  9:21 master 6011d39b6a: Fix drag-and-drop of files with multibyte filenames Eli Zaretskii
2022-06-05 10:00 ` Po Lu
2022-06-05 10:31   ` Eli Zaretskii
2022-06-05 11:42     ` Po Lu
2022-06-05 12:54       ` Eli Zaretskii
2022-06-05 13:07         ` Po Lu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.