From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefano Zacchiroli Newsgroups: gmane.emacs.bugs Subject: bug#14782: 24.3.50; flyspell-mode garbles accents in terminal clients Date: Fri, 5 Jul 2013 17:30:14 +0200 Message-ID: <20130705153014.GA2174@upsilon.cc> References: <87vc4r477y.fsf@usha.takhisis.invalid> <83sizv9h7m.fsf@gnu.org> <20130704070221.GA31356@upsilon.cc> <83ip0qz4ec.fsf@gnu.org> <20130704165236.GA8895@upsilon.cc> <83fvvuyz0a.fsf@gnu.org> <20130704192002.GA18377@upsilon.cc> <838v1lz27e.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1373038569 27949 80.91.229.3 (5 Jul 2013 15:36:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Jul 2013 15:36:09 +0000 (UTC) Cc: 14782@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 05 17:36:10 2013 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 1Uv83O-0005B6-2g for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 17:36:10 +0200 Original-Received: from localhost ([::1]:49640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv83N-0007IQ-IJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Jul 2013 11:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv83J-0007HG-8n for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 11:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uv83G-0001nl-FF for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 11:36:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uv7yQ-0008K6-WD for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 11:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Uv7yQ-0000yG-Ei for bug-gnu-emacs@gnu.org; Fri, 05 Jul 2013 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefano Zacchiroli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Jul 2013 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14782 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14782-submit@debbugs.gnu.org id=B14782.13730382233632 (code B ref 14782); Fri, 05 Jul 2013 15:31:02 +0000 Original-Received: (at 14782) by debbugs.gnu.org; 5 Jul 2013 15:30:23 +0000 Original-Received: from localhost ([127.0.0.1]:60345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uv7xk-0000wU-Gh for submit@debbugs.gnu.org; Fri, 05 Jul 2013 11:30:21 -0400 Original-Received: from upsilon.hackadomia.org ([91.121.245.170]:49210) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Uv7xg-0000wD-GA for 14782@debbugs.gnu.org; Fri, 05 Jul 2013 11:30:18 -0400 Original-Received: from usha.takhisis.invalid (maths.r-prg.net.univ-paris7.fr [81.194.27.158]) by upsilon.hackadomia.org (Postfix) with ESMTPSA id 18617960E1; Fri, 5 Jul 2013 17:30:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upsilon.cc; s=mail; t=1373038215; bh=9d4v8naptOTO9nz6ZeU9+1z98E4GiAyYVXyJ5g4+nA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VqRnN4uUP8krh9rM3Rrur3bYNzReHEjE5wfzl5OTzQRrjt7/0qJcFvWemmv6KXr3z j33OvAAwPGj+jkUxrIBDfSzPS0BXrTwNhU1dBlMZ1iVqkJK/m27agLHf5Si/O3VTry uRZsQZ/cA+Ma4xdLcAI032q4n7BXbTnk/0GYwGrw= Original-Received: by usha.takhisis.invalid (Postfix, from userid 1000) id E3392680BBB; Fri, 5 Jul 2013 17:30:14 +0200 (CEST) Content-Disposition: inline In-Reply-To: <838v1lz27e.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 140.186.70.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:75951 Archived-At: On Fri, Jul 05, 2013 at 02:16:37PM +0300, Eli Zaretskii wrote: > Thanks. How did you type those characters, exactly? I use X11 compose key (which is mapped to my right-Alt) and compose together the characters "e" and "'" (single straight quote), but that should be transparent to Emacs. I'd like to stress that AFAICT my general encoding settings work just fine and that I've been using UTF-8 locales since many many years. As evidence of that I can report also the following experiment (done in the very same terminal where I can reproduce the problem with emacsclient): $ echo conférence > foo.txt In the above, I use X11 compose key to obtain the accented "e" on the console, and use bash redirection to create foo.txt. The obtained .txt file contains the correct unicode code point encoded in UTF-8: $ od -c foo.txt 0000000 c o n f 303 251 r e n c e \n 0000014 FWIW emacsclients (both on the console and in the GUI) can *read* that file just fine, showing the appropriate character. It is just at *insert* time, and only if flyspell-mode is enabled, that I get character garbling. > And what does "M-: (keyboard-coding-system) RET" says in the frame > produced by emacsclient? It returns "utf-8-unix" in all possible combinations of console/GUI client and flyspell-mode on/off. Cheers. PS I'll now work on a complete recipe to reproduce the problem starting from emacs -Q and post it to the bug log. But it will need X11 compose key. -- Stefano Zacchiroli . . . . . . . zack@upsilon.cc . . . . o . . . o . o Maître de conférences . . . . . http://upsilon.cc/zack . . . o . . . o o Former Debian Project Leader . . @zack on identi.ca . . o o o . . . o . « the first rule of tautology club is the first rule of tautology club »