ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Popineau <Fabrice.Popineau@supelec.fr>
Subject: Re: problems with embedded spaces in file paths (Win32)
Date: Mon, 15 Sep 2003 23:28:50 +0200	[thread overview]
Message-ID: <d6e1hhbh.fsf@esemetz.metz.supelec.fr> (raw)
In-Reply-To: <Pine.GSO.3.95.iB1.0.1030915123533.20893B-100000@halifax.chebucto.ns.ca> (George White's message of "Mon, 15 Sep 2003 13:08:44 -0300 (ADT)")


> 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 (<TEX>)
       { chomp ;
         my $Filter ;
==== //depot/Master/texmf/context/perltk/texutil.pl#26 - c:\source\texlive\Master\texmf\context\perltk\texutil.pl ====

  reply	other threads:[~2003-09-15 21:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-15 16:08 George White
2003-09-15 21:28 ` Fabrice Popineau [this message]
2003-09-16 21:13   ` George N. White III
2003-09-17 17:17   ` George White
2003-09-17 20:09     ` Mari Voipio
2003-09-17 21:16       ` George N. White III
2003-09-19  1:18       ` George N. White III
     [not found] <Pine.GSO.3.95.iB1.0.1030915123533.20893B-100000@halifax.ch ebucto.ns.ca>
2003-09-15 18:55 ` Hans Hagen
2003-09-17  8:04   ` Fabrice Popineau

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=d6e1hhbh.fsf@esemetz.metz.supelec.fr \
    --to=fabrice.popineau@supelec.fr \
    --cc=ntg-context@ntg.nl \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).