I got an error on a new MiKTeX 2.9 win7 64-bit install while running the luaotfload tool.
luaotfload | Updating the font names database:
luaotfload | Font names database not found, generating new one.
This can take several minutes; please be patient.
luaotfload | Updating the font names database:
<omitted>
The network name cannot be found.
Data: \\MiKTeX\]MPM[\fonts\opentype
The error is very cryptic and is very similar to
LuaTeX font database cannot be created in MiKTeX 2.9
Unfortunatly that topic was unanswered. However, I dug a little deeper and found the real cause. The $OPENTYPEFONTS path in MikTex is set to (among other things) '%R\fonts\opentype//'
Now I checked expanding this path using
kpsewhich --expand-path='%R'
and I get the same error. But if I use a small letter r
kpsewhich --expand-path="%r"
it works perfectly fine.
How do I make kpsewhich case-insensitive or update the $OPENTYPEFONTS variable to have a small %r