From: Mike FABIAN <mfabian@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 20906@debbugs.gnu.org
Subject: bug#20906: 25.0.50;
Date: Mon, 05 Oct 2015 13:20:55 +0200 [thread overview]
Message-ID: <s9dfv1pimso.fsf@ari.site> (raw)
In-Reply-To: <83mvvxzjz4.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 05 Oct 2015 13:29:51 +0300")
Eli Zaretskii <eliz@gnu.org> さんはかきました:
>> From: Mike FABIAN <mfabian@redhat.com>
>> Cc: 20906@debbugs.gnu.org
>> Date: Mon, 05 Oct 2015 12:07:19 +0200
>>
>> In xselect.c near line 1473, there is:
>>
>> static Lisp_Object
>> x_get_window_property_as_lisp_data (struct x_display_info *dpyinfo,
>> Window window, Atom property,
>> Lisp_Object target_type,
>> Atom selection_atom)
>> {
>> Atom actual_type;
>> int actual_format;
>> unsigned long actual_size;
>> unsigned char *data = 0;
>> ptrdiff_t bytes = 0;
>> Lisp_Object val;
>> Display *display = dpyinfo->display;
>>
>> TRACE0 ("Reading selection data");
>>
>> x_get_window_property (display, window, property, &data, &bytes,
>> &actual_type, &actual_format, &actual_size);
>>
>> And here I see that “data” contains something like this:
>>
>> (gdb) p data
>> $1 = (unsigned char *) 0x1a98cb0 "\\u5b8c\\u4e86"
>>
>> I.e. it seems to be wrong in in that function in “data” already.
>
> That was my guess. What is the value of 'property', btw?
(gdb) p property
$2 = 602
>> Is this the right way to debugging this? Continue like this?
>
> Could it be that some agent unrelated to Emacs produces these strings?
> Maybe the selection owner itself (Firefox, right?)?
And rxvt-unicode.
> Do other X programs work OK with pasting from the primary selection
> via the mouse?
No.
Pasting from gedit, gnome-terminal, ... (probably all gtk3 programs)
behaves the same way as pasting from firefox (Stuff like
\u6708\u66dc\u65e5 is inserted).
When pasting from xterm, I get only question marks for the non-ASCII
characters. Even worse.
--
Mike FABIAN <mfabian@redhat.com>
☏ Office: +49-69-365051027, internal 8875027
睡眠不足はいい仕事の敵だ。
next prev parent reply other threads:[~2015-10-05 11:20 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 20:35 bug#20906: 25.0.50; Pasting unicode from external applications with mouse wheel on Unix Boris Kheyfets
2015-06-26 21:37 ` Kaushal
2015-06-26 21:41 ` Boris Kheyfets
2015-06-27 7:27 ` Eli Zaretskii
2015-06-27 7:58 ` Boris Kheyfets
2015-06-27 8:12 ` Eli Zaretskii
[not found] ` <CADVzOS83fAf1na7ThotyD3mGOJak-U=ZayhGd=cC3=xT2JZuKQ@mail.gmail.com>
2015-06-27 8:33 ` Eli Zaretskii
2015-06-27 8:34 ` Eli Zaretskii
2015-06-27 10:02 ` Boris Kheyfets
2015-06-27 11:44 ` Eli Zaretskii
2015-10-03 13:15 ` bug#20906: 25.0.50; Mike FABIAN
2015-10-03 14:00 ` Eli Zaretskii
2015-10-05 4:34 ` Mike FABIAN
2015-10-05 6:21 ` Eli Zaretskii
2015-10-05 6:30 ` Mike FABIAN
2015-10-05 7:06 ` Eli Zaretskii
2015-10-05 10:07 ` Mike FABIAN
2015-10-05 10:29 ` Eli Zaretskii
2015-10-05 11:20 ` Mike FABIAN [this message]
2015-10-05 11:39 ` Eli Zaretskii
2015-10-05 12:04 ` Andreas Schwab
2015-10-05 12:30 ` Eli Zaretskii
2015-10-05 15:08 ` Mike FABIAN
2015-10-05 17:06 ` Eli Zaretskii
2015-10-06 6:30 ` Mike FABIAN
2015-10-06 16:29 ` Eli Zaretskii
2015-10-06 19:44 ` Mike FABIAN
2015-10-07 6:35 ` Mike FABIAN
2015-10-07 15:33 ` Eli Zaretskii
2015-10-08 8:10 ` Mike FABIAN
2015-10-08 13:15 ` Mike FABIAN
2015-10-08 13:25 ` Mike FABIAN
2015-10-08 14:02 ` Andreas Schwab
2015-10-08 14:58 ` Eli Zaretskii
2015-10-08 15:08 ` Andreas Schwab
2015-10-08 15:15 ` Eli Zaretskii
2015-10-08 15:33 ` Andreas Schwab
2015-10-08 15:42 ` Eli Zaretskii
2015-10-08 16:56 ` Mike FABIAN
2015-10-09 15:34 ` Mike FABIAN
2015-10-12 8:39 ` Andreas Schwab
2015-10-12 12:20 ` Mike FABIAN
2015-10-12 15:56 ` Eli Zaretskii
2015-10-05 14:24 ` Mike FABIAN
2015-10-05 14:55 ` Mike FABIAN
2015-10-05 15:01 ` Mike FABIAN
2015-10-05 15:05 ` Mike FABIAN
2015-10-05 17:05 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s9dfv1pimso.fsf@ari.site \
--to=mfabian@redhat.com \
--cc=20906@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.