summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-05-17 14:35:11 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-05-17 14:35:11 +0000
commit36dd34a850a6284be752b454845c199ef83f62af (patch)
treeb5a5194691383021ec70c15dd7dcad3471727fbb /Build
parentee1bd51a613b353cd57f95ca06a9e5256dc2a0cb (diff)
switch luatex to using xgetcwd() for the synctex absolute file problem
git-svn-id: svn://tug.org/texlive/trunk@22507 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/luatexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/luatexdir/luatex_svnversion.h2
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/texfileio.w13
3 files changed, 8 insertions, 12 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index 616c7f99494..fd48641ab41 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-17 Taco Hoekwater <taco@luatex.org>
+ * tex/texfileio.w (luatex_synctex_get_current_name): switch to xgetcwd()
+ from kpathsea
+ * luatex_svnversion.h: updated to reflect latest luatex revision (4272)
+
2011-05-15 Taco Hoekwater <taco@luatex.org>
* tex/texfileio.w (luatex_synctex_get_current_name): work around a
bug in getcwd().
diff --git a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
index 8d4f39f755b..7e1e5205f62 100644
--- a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
+++ b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
@@ -1 +1 @@
-#define luatex_svn_revision 4267
+#define luatex_svn_revision 4272
diff --git a/Build/source/texk/web2c/luatexdir/tex/texfileio.w b/Build/source/texk/web2c/luatexdir/tex/texfileio.w
index 703898ea149..523b9e4f2ec 100644
--- a/Build/source/texk/web2c/luatexdir/tex/texfileio.w
+++ b/Build/source/texk/web2c/luatexdir/tex/texfileio.w
@@ -23,7 +23,7 @@
#include <kpathsea/absolute.h>
static const char _svn_version[] =
- "$Id: texfileio.w 4267 2011-05-15 09:19:58Z taco $"
+ "$Id: texfileio.w 4272 2011-05-17 14:10:30Z taco $"
"$URL: http://foundry.supelec.fr/svn/luatex/branches/0.70.x/source/texk/web2c/luatexdir/tex/texfileio.w $";
@ @c
@@ -858,23 +858,14 @@ char *get_full_log_name (void)
@ Synctex uses this to get the anchored path of an input file.
-The |2048| instead of a normal low number like |2| is because
-apparently glibc's |getcwd| is buggy: actually executing the
-loop causes errors later on during execution even though the
-initial function calls work just fine.
-
@c
char *luatex_synctex_get_current_name (void)
{
char *pwdbuf = NULL, *ret;
- int pwdbufsize = 2048;
if (kpse_absolute_p(fullnameoffile, false)) {
return xstrdup(fullnameoffile);
}
- do {
- pwdbufsize = 2*pwdbufsize;
- pwdbuf = xrealloc (pwdbuf, pwdbufsize);
- } while (!getcwd(pwdbuf, pwdbufsize));
+ pwdbuf = xgetcwd();
ret = concat3(pwdbuf, DIR_SEP_STRING, fullnameoffile);
free(pwdbuf) ;
return ret;