From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Autogen in Emacs Shell Date: Fri, 1 May 2015 19:06:09 +0200 Message-ID: References: <83twvzszjv.fsf@gnu.org> <20150501092657.GA19316@tuxteam.de> <20150501150340.GB30776@tuxteam.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1430500618 15253 80.91.229.3 (1 May 2015 17:16:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 17:16:58 +0000 (UTC) Cc: help-gnu-emacs To: tomas@tuxteam.de Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 01 19:16:57 2015 Return-path: Envelope-to: geh-help-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 1YoEYZ-0001ON-F0 for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 19:16:55 +0200 Original-Received: from localhost ([::1]:54848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoEYY-0008Ex-RM for geh-help-gnu-emacs@m.gmane.org; Fri, 01 May 2015 13:16:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoEXb-0006tR-1f for help-gnu-emacs@gnu.org; Fri, 01 May 2015 13:15:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoEOC-0003aQ-Jp for help-gnu-emacs@gnu.org; Fri, 01 May 2015 13:06:13 -0400 Original-Received: from mail-la0-x235.google.com ([2a00:1450:4010:c03::235]:36003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoEOA-0003Xf-IG; Fri, 01 May 2015 13:06:10 -0400 Original-Received: by lagv1 with SMTP id v1so67718974lag.3; Fri, 01 May 2015 10:06:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=29kPo31WMeKuu3McV735qudDZklmb+UCj+42j1a9n3U=; b=u5FTGGmP8KRWGwr0fWCX7IITA96cSMepPiVEOw5IFw4sYop3uqw5itL4abhy78Mxld 9Wz+ydMDvyrXkn3lOC7DW7ejAG9TUZpzDDcwK8S/pdqRrB5bP+jBiqmW9qJAv4gfZfJa Q9X1UONcVCtmF9hbz3HtW0RDkELEWW6TFyDroEuoG+vFdJujRUwkldZ2FZgONzXngvra hSyi+FLFGPoxPBtqBEzgSHhzfgP0Vn5oDJvEOZ00AzneQuXzkmaUDuEtVbA60j0HM2EU 0a0QpS7pnbOpJbbMl5EglGelCSzPTFtA+lPrRAiqLvknI/ldaTP7kGgrpsToFgQSNn0W VLoQ== X-Received: by 10.112.125.138 with SMTP id mq10mr9117912lbb.35.1430499969679; Fri, 01 May 2015 10:06:09 -0700 (PDT) Original-Received: by 10.112.36.103 with HTTP; Fri, 1 May 2015 10:06:09 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::235 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104138 Archived-At: Right, so explicitly doing (setenv "LANG" "en_US.UTF-8") solves both problems at once. Interesting... Do you have any comments on that? Maybe clarifications on why this problem occurs? For instance, why `LANG' is properly set in ConEmu, while in Emacs it has value `ENU'? Where does this even come from? Is it OK to do (setenv "LANG" "en_US.UTF-8") or there is some other more generic way? On Fri, May 1, 2015 at 6:08 PM, Alexander Shukaev wrote: > So I found out that the "/etc/post-install/05-home-dir.post" script > changes to `HOME' depending on `CHERE_INVOKING' (sick stuff I must say). > Setting > > (setenv "CHERE_INVOKING" "1") > > solves the problem with unintentional change to `HOME' when "--login" is > present. Now I can finally invoke 'bash' with > > (defun bash > (&optional buffer) > (interactive) > (let ((explicit-shell-file-name "bash") > (explicit-bash-args '("--noediting" "-l" "-i"))) > (setq buffer (my-call shell buffer))) > (with-current-buffer buffer > (when (equal (buffer-name) "*shell*") > (rename-buffer "*bash*" t)))) > > So far so good. Now onto the original problem since even with "-l" those > issues with 'bsdtar' and inability to find 'automake' by 'autogen.sh' still > remain. I'm currently looking at the diff between the two `set' commands > from ConEmu and Emacs. There are of course quite some differences, I don't > want to post all of them not to overwhelm you. But here are probably the > most interesting ones: > > ConEmu: > > LANG=en_US.UTF-8 > PKG_CONFIG_PATH= > PROMPT= > SESSIONNAME= > SHELL=/usr/bin/bash > > Emacs: > > LANG=ENU > PKG_CONFIG_PATH='C:\Tools\x64\MSYS2\mingw64\lib\pkgconfig;' > PROMPT='$P$G' > SESSIONNAME=Console > > SHELL=C:/Tools/x64/MSYS2/mingw64/libexec/emacs/25.0.50/x86_64-w64-mingw32/cmdproxy.exe > > What do you think guys? > > > >