From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 15337@debbugs.gnu.org
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 [thread overview]
Message-ID: <87fvt9nen6.fsf@gmail.com> (raw)
In-Reply-To: <838uz1i2k7.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 13 Sep 2013 10:49:28 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
>> Cc: 15337@debbugs.gnu.org
>> Date: Fri, 13 Sep 2013 07:21:44 +0200
>>
>> Eli Zaretskii <eliz@gnu.org> 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
next prev parent reply other threads:[~2013-09-13 11:29 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 11:57 bug#15337: 24.3.50; [PATCH] cd to directory name with french accent fail from term/ansi-term Thierry Volpiatto
2013-09-11 13:51 ` Eli Zaretskii
2013-09-11 14:12 ` Thierry Volpiatto
2013-09-11 16:21 ` Eli Zaretskii
2013-09-12 5:11 ` Thierry Volpiatto
2013-09-12 15:33 ` Eli Zaretskii
2013-09-13 5:21 ` Thierry Volpiatto
2013-09-13 7:49 ` Eli Zaretskii
2013-09-13 11:29 ` Thierry Volpiatto [this message]
2013-09-13 11:59 ` Thierry Volpiatto
2013-09-13 13:25 ` Eli Zaretskii
2013-09-13 13:23 ` 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=87fvt9nen6.fsf@gmail.com \
--to=thierry.volpiatto@gmail.com \
--cc=15337@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.