summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-05-15 09:40:19 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-05-15 09:40:19 +0000
commitb11a52a1f5540aa3c933056cf0232a7ac91ee1cb (patch)
treed5b77f2de2b28eadb698d464bcbbb6d7f6692c9f /Build
parent7ce988c46e804f8ed39694921258a22600976974 (diff)
fix an odd getcwd() problem
git-svn-id: svn://tug.org/texlive/trunk@22481 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.w9
3 files changed, 13 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog
index e302e229987..616c7f99494 100644
--- a/Build/source/texk/web2c/luatexdir/ChangeLog
+++ b/Build/source/texk/web2c/luatexdir/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-15 Taco Hoekwater <taco@luatex.org>
+ * tex/texfileio.w (luatex_synctex_get_current_name): work around a
+ bug in getcwd().
+ * luatex_svnversion.h: updated to reflect latest luatex revision (4267)
+
2011-05-13 Taco Hoekwater <taco@luatex.org>
* lua/luainit.w: change the copyright year to 2011.
* luatex_svnversion.h: updated to reflect latest luatex revision (4264)
diff --git a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
index 09bc690af5e..8d4f39f755b 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 4264
+#define luatex_svn_revision 4267
diff --git a/Build/source/texk/web2c/luatexdir/tex/texfileio.w b/Build/source/texk/web2c/luatexdir/tex/texfileio.w
index 2a0a6c88913..703898ea149 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 4256 2011-05-09 13:15:39Z taco $"
+ "$Id: texfileio.w 4267 2011-05-15 09:19:58Z taco $"
"$URL: http://foundry.supelec.fr/svn/luatex/branches/0.70.x/source/texk/web2c/luatexdir/tex/texfileio.w $";
@ @c
@@ -858,11 +858,16 @@ 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 = 2;
+ int pwdbufsize = 2048;
if (kpse_absolute_p(fullnameoffile, false)) {
return xstrdup(fullnameoffile);
}