From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#15337: 24.3.50; [PATCH] cd to directory name with french accent fail from term/ansi-term Date: Fri, 13 Sep 2013 13:29:33 +0200 Organization: Emacs Helm Message-ID: <87fvt9nen6.fsf@gmail.com> References: <87a9jj7eqj.fsf@gmail.com> <83y573ihzw.fsf@gnu.org> <87a9jjv44z.fsf@gmail.com> <83vc27ib2r.fsf@gnu.org> <87r4cuwrob.fsf@gmail.com> <83fvtahx6g.fsf@gnu.org> <878uz1cn4n.fsf@gmail.com> <838uz1i2k7.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379071879 21749 80.91.229.3 (13 Sep 2013 11:31:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2013 11:31:19 +0000 (UTC) Cc: 15337@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 13:31:21 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 1VKRao-0002fD-0h for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 13:31:18 +0200 Original-Received: from localhost ([::1]:46067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKRan-0007Sv-CH for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 07:31:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKRae-0007Sl-GT for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 07:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKRaY-0003vw-Nb for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 07:31:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52731) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKRaY-0003vr-JU for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 07:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VKRaX-0004eD-VN for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 07:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2013 11:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15337 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 15337-submit@debbugs.gnu.org id=B15337.137907181014168 (code B ref 15337); Fri, 13 Sep 2013 11:31:01 +0000 Original-Received: (at 15337) by debbugs.gnu.org; 13 Sep 2013 11:30:10 +0000 Original-Received: from localhost ([127.0.0.1]:32788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKRZh-0003es-9T for submit@debbugs.gnu.org; Fri, 13 Sep 2013 07:30:09 -0400 Original-Received: from mail-wg0-f54.google.com ([74.125.82.54]:56263) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKRZZ-0003a3-3W for 15337@debbugs.gnu.org; Fri, 13 Sep 2013 07:30:03 -0400 Original-Received: by mail-wg0-f54.google.com with SMTP id m15so1023436wgh.9 for <15337@debbugs.gnu.org>; Fri, 13 Sep 2013 04:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=UoILXebGx+VILV2WnbcCb5KStdqGf5e1dYOvbt4t+74=; b=dO1ptgTfw3Qm/5Sw/2n3a+rQ8oXmEUQbZj33t43jWXnM8lUNG3yvW/YoU8f+JXcuc9 XQvTQPpJN2eoMX+Gv85ra7GbMZcla90y8Gyvun33HPvzTjF+GXgEGoYg9MQ6MuwFMlyd ar9dLc+DN1CKM6ulwCdCvtaPBbyNKujg/sjrxlB57oi9NI1gainnlmJh1QJwomT3XNxO 9oiY1N7EWlugSBMsxxFZzUZjpUuJ7r7wMRKZZxSFvqJNJm6AbfB2GWHKneAMOIo6s6ko xCB+ZoIDjLTbxY2ETVXvjwy1xCjUD6VGO8q2Q+ylvpoEvVD76wOYkgvQQnkshMEqufke 2KDg== X-Received: by 10.180.198.115 with SMTP id jb19mr2181361wic.28.1379071794814; Fri, 13 Sep 2013 04:29:54 -0700 (PDT) Original-Received: from dell-14z ([37.160.39.198]) by mx.google.com with ESMTPSA id dx7sm2843351wib.8.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 13 Sep 2013 04:29:54 -0700 (PDT) In-Reply-To: <838uz1i2k7.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Sep 2013 10:49:28 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) 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:78332 Archived-At: Eli Zaretskii writes: >> From: Thierry Volpiatto >> Cc: 15337@debbugs.gnu.org >> Date: Fri, 13 Sep 2013 07:21:44 +0200 >> >> Eli Zaretskii writes: >> >> > So please see if decoding the result of prog1 with >> > decode-coding-string, like you suggested to do in 'cd', but before >> > passing it to funcall, fixes the problem. Something like this: >> > >> > (funcall term-command-hook >> > (decode-coding-string >> > (prog1 (substring str (1+ i) end) >> > (setq i (match-end 0))) >> > locale-coding-system)) >> >> Yes it is working > > Then please install. I can't, please do it. >> or just decoding 'string' in `term-command-hook' works too. > > I considered that as well, but decided that doing it before > term-command-hook is called is better, since that hook might be > redefined by users of term.el (right?). So it is better to pass the > hook an already decoded string, because Lisp code does not generally > expect to get unibyte strings, especially if they are file names. Ok. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997