From 828a69efb1f899f8707270f4515db20d485ccc34 Mon Sep 17 00:00:00 2001
From: Philipp Gesang <phg42.2a@gmail.com>
Date: Sun, 18 May 2014 21:35:56 +0200
Subject: [main] backport 0e06af55b50b2314c5d99db4843c1881dd89a88b (lowercase
 forced format)

---
 luaotfload.dtx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'luaotfload.dtx')

diff --git a/luaotfload.dtx b/luaotfload.dtx
index 40b5df9..b8fd11d 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -1995,7 +1995,7 @@ local file_resolver = function (specification)
     local name    = resolve_file (specification.name)
     local suffix  = filesuffix(name)
     if formats[suffix] then
-        specification.forced      = suffix
+        specification.forced      = string.lower (suffix)
         specification.forcedname  = file.removesuffix(name)
     else
         specification.name = name
@@ -2080,7 +2080,7 @@ request_resolvers.path = function (specification)
     else
         local suffix = filesuffix (name)
         if formats[suffix] then
-            specification.forced      = suffix
+            specification.forced      = string.lower (suffix)
             specification.name        = file.removesuffix(name)
             specification.forcedname  = name
         else
@@ -2102,7 +2102,7 @@ request_resolvers.kpse = function (specification)
     if suffix and formats[suffix] then
         name = file.removesuffix(name)
         if resolvers.findfile(name, suffix) then
-            specification.forced       = suffix
+            specification.forced       = string.lower (suffix)
             specification.forcedname   = name
             return
         end
@@ -2130,7 +2130,7 @@ request_resolvers.name = function (specification)
     if resolved then
         specification.resolved   = resolved
         specification.sub        = subfont
-        specification.forced     = filesuffix (resolved)
+        specification.forced     = string.lower (filesuffix (resolved) or "")
         specification.forcedname = resolved
         specification.name       = fileremovesuffix (resolved)
     else
-- 
cgit v1.2.3

