From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Rainer Subject: Re: passing LC_ALL environment variable to org export call Date: Mon, 29 Sep 2014 12:54:02 +0200 Message-ID: <93730A3A-00B0-431D-8498-7D7852D15AAA@gmail.com> References: <87ppeiv621.fsf@gmx.us> Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32840) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYYav-0001Rr-VQ for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 06:54:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYYap-0003EP-WA for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 06:54:17 -0400 Received: from mail-wg0-x234.google.com ([2a00:1450:400c:c00::234]:48431) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYYap-0003Di-Ow for emacs-orgmode@gnu.org; Mon, 29 Sep 2014 06:54:11 -0400 Received: by mail-wg0-f52.google.com with SMTP id n12so11102916wgh.23 for ; Mon, 29 Sep 2014 03:54:05 -0700 (PDT) In-Reply-To: <87ppeiv621.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org hi Rasmus, thanks for your hint. I checked Sys.getenv before and after the failing = code, but LC_ALL was always properly set. I=92m afraid my problem = relates to some Mac LLVM and GCC gfortran compiler thing, since I=92m = using a R version compiled against the Mac Accelerate framework = (vecLib)=85 it is just so strange that I only get the error in Emacs = org-mode upon exporting the org file, but not, if I evaluate each code = chunk separately. to set all environment variables I=92m using the =93exec-path-from-shell=94= extension, so, all environment settings from the shell are available in = Emacs. =20 On 26 Sep 2014, at 15:56, Rasmus wrote: > Hi Johannes, >=20 > Johannes Rainer writes: >=20 >> I stumbled across a strange problem. I=92m using org-mode to perform >> analyses in R and I have one block of R-code in which I use mclapply >> to perform parallel calculations. evaluating this code block using = C-c >> C-c works fine, but I get a segfault error when I export the org = file. >>=20 >> This has to do something with the LC_ALL environment variable as I = can >> reproduce the same error above in R in a terminal after =93unset >> LC_ALL=94. >>=20 >> Is there a way to pass environment variables to the export call? >=20 > Check the two functions `getenv' and `setenv' and the variable > `org-export-async-init-file'. You should be able to cook something > up. >=20 > It sound like there's an issue with your system-setup. I'd look into > that before. >=20 > Hope it helps, > Rasmus >=20 > --=20 > Lasciate ogni speranza, voi che leggete questo. >=20 >=20