From: Oleksandr Gavenko <gavenko@bifit.com.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs 23.3 with Cygwin bash and '\r'.
Date: Fri, 11 Mar 2011 12:29:44 +0200 [thread overview]
Message-ID: <ilctii$bed$1@dough.gmane.org> (raw)
In-Reply-To: <837hc6uj52.fsf@gnu.org>
On 11.03.2011 11:00, Eli Zaretskii wrote:
>> From: Oleksandr Gavenko<gavenko@bifit.com.ua>
>> Date: Fri, 11 Mar 2011 10:32:44 +0200
>>
>> On 10.03.2011 19:34, Eli Zaretskii wrote:
>>>> From: Oleksandr Gavenko<gavenko@bifit.com.ua>
>>>> Date: Thu, 10 Mar 2011 18:30:41 +0200
>>>>
>>>> I get latest Emacs 23.3:
>>>>
>>>> http://permalink.gmane.org/gmane.emacs.announce/19
>>>>
>>>> and it loaded successfully, but previously all Emacs after setting:
>>>>
>>>> (setq shell-file-name "bash")
>>>> (setenv "SHELL" "/bin/bash")
>>>>
>>>> work fine and now shell say:
>>>>
>>>> $ pwd
>>>> bash: $'pwd\r': команда не найдена
>>>
>>> Doesn't that \r give a hint?
>>>
>> Sorry, no ))
>
> What value do you get if you evaluate the following expression:
>
> (process-coding-system (get-process "shell"))
>
(windows-1251-unix . windows-1251-dos)
This hint help me!
>
> Since you are using the Cygwin bash, you need to use undecided-unix
> (or something -unix, anyway) in the cdr of the cons cell that is
> returned by process-coding-system. You can probably use
> set-process-coding-system to change the defaults.
>
Firstly I afraid how automatically call
(set-process-coding-system (get-process "shell") 'cp1251-unix
'cp1251-unix)
But I try
(setq shell-file-name "bash")
(modify-coding-system-alist 'process "bash" '(cp1251-unix . cp1251-unix))
and this help! Work with new Emacs and with old.
> (Btw, if your Emacs is a native Windows build, then you should expect
> these surprises, because native Windows programs and Cygwin programs
> are subtly incompatible, the matters related to EOL format being one
> of the aspects of this incompatibility. Why not use the Cygwin build
> of Emacs instead?)
>
I use native Emacs with cygwin-mount.el and Cygwin toolset because I
some times
use 'menu' and mouse clicking. Cygwin X Window require additional
attention in this area
and look some ugly.
Work perfectly with minor issues.
prev parent reply other threads:[~2011-03-11 10:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-10 16:30 Emacs 23.3 with Cygwin bash and '\r' Oleksandr Gavenko
2011-03-10 17:34 ` Eli Zaretskii
2011-03-11 8:32 ` Oleksandr Gavenko
2011-03-11 9:00 ` Eli Zaretskii
2011-03-11 10:29 ` Oleksandr Gavenko [this message]
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='ilctii$bed$1@dough.gmane.org' \
--to=gavenko@bifit.com.ua \
--cc=help-gnu-emacs@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.