From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Leonard Lausen Newsgroups: gmane.emacs.bugs Subject: bug#27312: 25.2; can't activate fcitx even though env is set up correctly Date: Thu, 15 Jun 2017 13:47:47 +0900 Message-ID: References: <7db29009-200d-4921-20b1-71e2df37e67f@lausen.nl> <87r2ymrtyn.fsf@users.sourceforge.net> <482d503a-4e11-3824-ae3e-c924bee8aca2@lausen.nl> <87mv9arl3a.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1497502154 18225 195.159.176.226 (15 Jun 2017 04:49:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Jun 2017 04:49:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 Cc: 27312@debbugs.gnu.org To: Eli Zaretskii , npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 15 06:49:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLMiT-0004Ue-Kh for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 06:49:09 +0200 Original-Received: from localhost ([::1]:51930 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLMiY-00019e-Jn for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Jun 2017 00:49:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56514) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLMiP-00018m-Mc for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 00:49:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLMiM-0002JU-KV for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 00:49:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLMiM-0002JQ-HO for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 00:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dLMiM-0004hC-4M for bug-gnu-emacs@gnu.org; Thu, 15 Jun 2017 00:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Leonard Lausen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Jun 2017 04:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27312 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27312-submit@debbugs.gnu.org id=B27312.149750208217981 (code B ref 27312); Thu, 15 Jun 2017 04:49:02 +0000 Original-Received: (at 27312) by debbugs.gnu.org; 15 Jun 2017 04:48:02 +0000 Original-Received: from localhost ([127.0.0.1]:48410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLMhN-0004fg-Lj for submit@debbugs.gnu.org; Thu, 15 Jun 2017 00:48:02 -0400 Original-Received: from hercules.uberspace.de ([95.143.172.224]:41920 ident=OjjoDtksOnG) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dLMhL-0004fT-6F for 27312@debbugs.gnu.org; Thu, 15 Jun 2017 00:47:59 -0400 Original-Received: (qmail 8336 invoked from network); 15 Jun 2017 04:47:53 -0000 Original-Received: from localhost (HELO ?10.64.139.29?) (127.0.0.1) by hercules.uberspace.de with SMTP; 15 Jun 2017 04:47:53 -0000 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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" Xref: news.gmane.org gmane.emacs.bugs:133603 Archived-At: >> Ok, I see that according to Bug#10867, it should work with your setup. >> Have you ever got it working with older Emacs versions? >> >> I guess you've also verified that 'locale -a' shows 'zh_CN.UTF-8'? >> I'm >> afraid I don't know how to troubleshoot this any further. 'locale -a' shows zh_CN.utf8. However, starting emacs "LC_CTYPE=zh_CN.utf8 emacs -Q" does not make any difference and as far as I understand zh_CN.utf8 and h_CN.UTF-8 should be equivalent (?). This was working on another system (based on Ubuntu) with version 24.5.1. Currently I'm on Gentoo and was not able to get it working with both emacs 25 and emacs 24. (I attach the USE flags at the end of this mail.) >>> Note that if I press the Ctrl-Space key (which should change the >> fcitx >>> input method) "emacs -Q" reports "Mark set" and "Mark deactivated", >>> while for "emacs -Q -nw" the input method is changed correctly (i.e. >> I >>> can input Chinese characters thereafter). >> >> Yeah, I guess for 'emacs -nw' it's really the terminal program that >> handles the input method, Emacs doesn't know anything about it. Yes, that would make sense. > etc/PROBLEMS mentions an issue with fcitx; could this be the same or similar > issue? The issue in etc/PROBLEMS seems to be the inverse of the problem that I am experiencing. In etc/PROBLEMS, the problem is that C-SPC is captured by fcitx and emacs does not receive the C-SPC command. However for me, I want C-SPC to be intercepted by fcitx to change the layout instead of emacs handling the key. Currently in all other programs C-SPC correctly switches the layout (i.e. is intercepted by fcitx), however in "emacs -Q" the key is intercepted by emacs. The current behavior of emacs is essentially the same as what #10867 describes to happen if LC_CTYPE is not "zh_CN.UTF-8", though in my case LC_CTYPE seems to be set correctly. So it seems there is some other bug(/error in my configuration) that prevents emacs from supporting X input method (?). USE flags: ✗ equery uses emacs [ Legend : U - final flag setting for installation] [ : I - package is installed with flag ] [ Colors : set, unset ] * Found these USE flags for app-editors/emacs-25.2: U I + + X : Add support for X11 - - Xaw3d : Add support for the 3d athena widget set + + acl : Add support for Access Control Lists + + alsa : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture) - - athena : Enable the MIT Athena widget set (x11-libs/libXaw) + + dbus : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc) + + dynamic-loading : Enable loading of dynamic libraries at runtime - - games : Support shared score files for games + + gconf : Use gnome-base/gconf to read the system font name - - gfile : Use gfile (dev-libs/glib) for file notification + + gif : Add GIF image support + + gpm : Add support for sys-libs/gpm (Console-based mouse driver) + + gsettings : Use gsettings (dev-libs/glib) to read the system font name + + gtk : Add support for x11-libs/gtk+ (The GIMP Toolkit) + + gtk3 : Prefer version 3 of the GIMP Toolkit to version 2 (x11-libs/gtk+) - - gzip-el : Compress bundled Emacs Lisp source - - hesiod : Enable support for net-dns/hesiod + + imagemagick : Use media-gfx/imagemagick for image processing + + inotify : Enable inotify filesystem monitoring support + + jpeg : Add JPEG image support - - kerberos : Add kerberos support + + libxml2 : Use dev-libs/libxml2 to parse XML instead of the internal Lisp implementations - - livecd : !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during livecd building + + m17n-lib : Enable m17n-lib support - - motif : Add support for the Motif toolkit - - pax_kernel : Enable building under a PaX enabled kernel + + png : Add support for libpng (PNG images) + + sound : Enable sound support + + source : Install C source files and make them available for find-function + + ssl : Add support for Secure Socket Layer connections + + svg : Add support for SVG (Scalable Vector Graphics) + + tiff : Add support for the TIFF image format - - toolkit-scroll-bars : Use the selected toolkit's scrollbars in preference to Emacs' own scrollbars - - wide-int : Prefer wide Emacs integers (typically 62-bit). This option has an effect only on architectures where "long" and "long long" types have different size. + + xft : Build with support for XFT font renderer (x11-libs/libXft) + + xpm : Add support for XPM graphics format + + zlib : Add support for zlib (de)compression