From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike FABIAN Newsgroups: gmane.emacs.bugs Subject: bug#20906: 25.0.50; Date: Mon, 05 Oct 2015 13:20:55 +0200 Organization: Red Hat Message-ID: References: <83zj002gt1.fsf@gnu.org> <8337xp25v7.fsf@gnu.org> <83y4fhztdz.fsf@gnu.org> <83mvvxzjz4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1444044142 9380 80.91.229.3 (5 Oct 2015 11:22:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Oct 2015 11:22:22 +0000 (UTC) Cc: 20906@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 05 13:22:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zj3qP-00073U-Cl for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 13:22:13 +0200 Original-Received: from localhost ([::1]:45347 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj3qO-0005oq-SP for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Oct 2015 07:22:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj3qJ-0005mZ-Lm for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 07:22:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zj3qE-0004IE-T6 for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 07:22:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zj3qE-0004IA-Pv for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 07:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zj3qE-0002hl-G2 for bug-gnu-emacs@gnu.org; Mon, 05 Oct 2015 07:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mike FABIAN Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Oct 2015 11:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20906-submit@debbugs.gnu.org id=B20906.144404406310320 (code B ref 20906); Mon, 05 Oct 2015 11:22:02 +0000 Original-Received: (at 20906) by debbugs.gnu.org; 5 Oct 2015 11:21:03 +0000 Original-Received: from localhost ([127.0.0.1]:54892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj3pG-0002gO-JR for submit@debbugs.gnu.org; Mon, 05 Oct 2015 07:21:02 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:36946) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zj3pD-0002fn-Qm for 20906@debbugs.gnu.org; Mon, 05 Oct 2015 07:21:00 -0400 Original-Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id BECEAA37E9; Mon, 5 Oct 2015 11:20:58 +0000 (UTC) Original-Received: from ari.site (ovpn-116-29.ams2.redhat.com [10.36.116.29]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t95BKtHP031303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 5 Oct 2015 07:20:57 -0400 Original-Received: from ari.site (localhost [IPv6:::1]) by ari.site (Postfix) with ESMTP id 22FC260D1D; Mon, 5 Oct 2015 13:20:55 +0200 (CEST) X-Face: "'; oPz9V1+<,`}1ZuxRv~EiSusWq*{Yjr"Sdvbhq'?q=2R\\6Y9O/,SAE`{J|6I=|w/sQg< rW_N'E3IV6~f8?\l#Es`]S`mv',PY(`8{$$R?+gLu}Qv/Mn>)?uladFjJ@yl!_p_Jh; 5QxlD6zL:?r IXe4FfK$C^mWhh$o`yt; .r.FLZLQOWBt> (Eli Zaretskii's message of "Mon, 05 Oct 2015 13:29:51 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107311 Archived-At: Eli Zaretskii さんはかきました: >> From: Mike FABIAN >> 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 ☏ Office: +49-69-365051027, internal 8875027 睡眠不足はいい仕事の敵だ。