[latex3-commits] [git/LaTeX3-latex3-luaotfload] dev: patch (Akira Kakuto) for windows files names (b1e8d44)
Ulrike Fischer
fischer at troubleshooting-tex.de
Tue Jul 14 14:51:52 CEST 2020
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/b1e8d440a5a7bf834de36a484a3a731a28670f9e
>---------------------------------------------------------------
commit b1e8d440a5a7bf834de36a484a3a731a28670f9e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Tue Jul 14 14:51:52 2020 +0200
patch (Akira Kakuto) for windows files names
>---------------------------------------------------------------
b1e8d440a5a7bf834de36a484a3a731a28670f9e
src/luaotfload-database.lua | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index 4b9221f..27ea583 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -2416,7 +2416,11 @@ local function get_os_dirs ()
elseif os.type == "windows" or os.type == "msdos" then
local windir = osgetenv("WINDIR")
local appdata = osgetenv("LOCALAPPDATA")
- return { filejoin(windir, 'Fonts'), filejoin(appdata, 'Microsoft/Windows/Fonts') }
+ if 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') }
+ end
else
local fonts_conves = { --- plural, much?
"/usr/local/etc/fonts/fonts.conf",
More information about the latex3-commits
mailing list.