From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/13252 Path: main.gmane.org!not-for-mail From: Fabrice Popineau Newsgroups: gmane.comp.tex.context Subject: Re: problems with embedded spaces in file paths (Win32) Date: Mon, 15 Sep 2003 23:28:50 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063661684 17086 80.91.224.253 (15 Sep 2003 21:34:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Sep 2003 21:34:44 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Mon Sep 15 23:34:43 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19z0zb-000088-00 for ; Mon, 15 Sep 2003 23:34:43 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 1F07E10B3F; Mon, 15 Sep 2003 23:34:40 +0200 (MEST) Original-Received: from esemetz.metz.supelec.fr (esemetz.metz.supelec.fr [193.48.224.212]) by ref.ntg.nl (Postfix) with ESMTP id 56F6710B30 for ; Mon, 15 Sep 2003 23:28:58 +0200 (MEST) Original-Received: from ANSIBLE.metz.supelec.fr (ca-metz-5-205.w80-8.abo.wanadoo.fr [80.8.116.205]) by esemetz.metz.supelec.fr (8.11.6/8.9.3) with ESMTP id h8FLStf26658 for ; Mon, 15 Sep 2003 17:28:56 -0400 Original-To: ntg-context@ntg.nl In-Reply-To: (George White's message of "Mon, 15 Sep 2003 13:08:44 -0300 (ADT)") User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.5 (cassava, windows-nt) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:13252 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:13252 > 1. on Win32, kpsewhich often fails to find texexec.ini. I created a I have applied a couple of patches to texexec and texutil. They are attached. > 2. ConTeXt texexec uses $ENV{"HOME"} to set a value in filename.tmp, > e.g., on unix: I tried your example and this is what I get : C:\tmp>cat try.tmp % try.top \unprotect \setupoutput[pdftex] \setupsystem[\c!gebied={C:/Documents and Settings/popineau/My Documents/}] \setupsystem[\c!n=2] \setupsystem[inputfile=try.tex] \protect Which seems correct, isn't it? Fabrice ==== //depot/Master/texmf/context/perltk/texexec.pl#32 - c:\source\texlive\Master\texmf\context\perltk\texexec.pl ==== @@ -390,6 +390,11 @@ { my $p = checked_path($_) . 'kpsewhich' ; if ((-e $p)||(-e $p . '.exe')) { $kpsewhich = $p ; +# Fix by Fabrice P +# irun.exe report $own_path to be c:/progra~1/texlive/bin/win32 +# and there is no space in it ! +# We could get spurious error messages here if there $p has spaces and $own_quote is not set + $own_quote = ($kpsewhich =~ m/^[^\"].* / ? "\"" : "") ; $IniPath = found_ini_file("ini") ; unless (-e $IniPath) { $IniPath = found_ini_file("rme") } last } } ==== //depot/Master/texmf/context/perltk/texexec.pl#34 - c:\source\texlive\Master\texmf\context\perltk\texexec.pl ==== ==== //depot/Master/texmf/context/perltk/texutil.pl#25 - c:\source\texlive\Master\texmf\context\perltk\texutil.pl ==== @@ -800,6 +800,7 @@ { my $p = checked_path($_) . 'kpsewhich' ; if ((-e $p)||(-e $p . '.exe')) { $kpsewhich = $p ; last } } } + $kpsewhich = "\"$kpsewhich\"" if ($kpsewhich =~ m/^[^\"].* / ? "\"" : "") ; while () { chomp ; my $Filter ; ==== //depot/Master/texmf/context/perltk/texutil.pl#26 - c:\source\texlive\Master\texmf\context\perltk\texutil.pl ====