luaotfload-unicode.lua fails when near UnicodeData.txt

Norman Gray <[email protected]> Mon, 13 Jul 2026 13:07:37 +0100
Newsgroups gmane.comp.tex.live
Message-ID <[email protected]>
Greetings.

(I'm presuming this is the correct destination for this report.  Apologie=
s if there's a bugparade I couldn't find.)

The program luaotfload-tool fails when the file UnicodeData.txt is in the=
 current directory.

% luaotfload-tool --update
=2E../texmf-dist/tex/luatex/luaotfload/luaotfload-unicode.lua:108: assert=
ion failed!
stack traceback:
	[C]: in function 'assert'
	.../texmf-dist/tex/luatex/luaotfload/luaotfload-unicode.lua:108: in main=
 chunk
	[C]: in function 'require'
	...texmf-dist/tex/luatex/luaotfload/luaotfload-database.lua:202: in main=
 chunk
	[C]: in function 'require'
	/Library/TeX/texbin/luaotfload-tool:167: in local 'loadmodule'
	/Library/TeX/texbin/luaotfload-tool:188: in main chunk

Running lualatex also fails in this situation.  Removing the file Unicode=
Data.txt from the current directory is enough to make both programs work =
again.

The lines 107--109 in question are

  local f =3D io.open(kpse.find_file"UnicodeData.txt")
  assert(file:match(f:read'*a'))
  f:close()

I appreciate this is unlikely to affect many people, and my workaround is=
 obvious, but this is presumably not quite working as designed.

Best wishes,

Norman






% luaotfload-tool --version

luaotfload-tool:
        Luaotfload font management and diagnostic utility.
        License: GNU GPL v2.0.
        Report problems to <https://github.com/latex3/luaotfload/issues>

luaotfload-tool version: "3.29"
Luaotfload: "v3.29/2024-12-03"
Revision: "48139bd3b29cd45baf567b5f35b98ad2b9d7bccb"
Lua interpreter: stock; version "Lua 5.3"
Luatex version: 1.24
Platform: type=3Dunix name=3Dmacosx
    +  machine: arm64
    + nodename: PHAS-MACDESKE207E9
    +  release: 25.5.0
    +  sysname: Darwin
    +  version: Darwin Kernel Version 25.5.0: Tue Jun  9 22:26:46 PDT 202=
6; root:xnu-12377.121.10~1/RELEASE_ARM64_T8103
Index: version=3D6 created=3D"2026-05-31 15:46:58" modified=3D"2026-07-13=
 12:56:09"
% sw_vers
ProductName:		macOS
ProductVersion:		26.5.2
BuildVersion:		25F84

=2E..and TeXLive 2026.

-- =

Norman Gray  :  https://nxg.me.uk