[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: Only invoke chgstrcp if available (b17f250)

Marcel Fabian Krüger tex at 2krueger.de
Sun Jul 19 04:00:15 CEST 2020


Repository : https://github.com/latex3/luaotfload
On branch  : dev
Link       : https://github.com/latex3/luaotfload/commit/b17f250ef563b51432c228163f47fd4819ddebff

>---------------------------------------------------------------

commit b17f250ef563b51432c228163f47fd4819ddebff
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sun Jul 19 04:00:15 2020 +0200

    Only invoke chgstrcp if available


>---------------------------------------------------------------

b17f250ef563b51432c228163f47fd4819ddebff
 src/luaotfload-database.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 68b1c8c..3001bd7 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -2398,7 +2398,7 @@ local function get_os_dirs ()
     elseif os.type == "windows" or os.type == "msdos" then
         local windir = osgetenv("WINDIR")
         local appdata = osgetenv("LOCALAPPDATA")
-        if kpse.var_value('command_line_encoding') ~= nil then
+        if chgstrcp and kpse.var_value('command_line_encoding') ~= nil then
             return { filejoin(windir, 'Fonts'), chgstrcp.syscptoutf8(filejoin(appdata, 'Microsoft/Windows/Fonts')) }
         else
             return { filejoin(windir, 'Fonts'), filejoin(appdata, 'Microsoft/Windows/Fonts') }





More information about the latex3-commits mailing list.