summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;