summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2018-03-05 08:50:30 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2018-03-05 08:50:30 +0000
commit0ab585a159d6f011c3eb364d7c0dc20424ef0738 (patch)
treefbcf46fc91ee96a5a91f402308544a397da6675d
parent6f8f8b8fbbfc91f57fa268a0ba8d817f5d3f3442 (diff)
fixed a bug in internal string lenght for texluac (many thanks to A. Kakuto)
git-svn-id: svn://tug.org/texlive/trunk@46827 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/luatexdir/lua/texluac.w2
-rw-r--r--Build/source/texk/web2c/luatexdir/luatex_svnversion.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/texluac.w b/Build/source/texk/web2c/luatexdir/lua/texluac.w
index 2c515670e55..424c74c77fd 100644
--- a/Build/source/texk/web2c/luatexdir/lua/texluac.w
+++ b/Build/source/texk/web2c/luatexdir/lua/texluac.w
@@ -285,7 +285,7 @@ static void PrintString(const TString* ts)
n=ts->tsv.len;
#endif
#if (LUA_VERSION_NUM == 503)
- n=ts->u.lnglen;
+ n=(ts->tt == LUA_TSHRSTR ? ts->shrlen : ts->u.lnglen);
#endif
printf("%c",'"');
for (i=0; i<n; i++)
diff --git a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
index 26e7f239b9a..0dc9ce044a3 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 6634
+#define luatex_svn_revision 6635