diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2015-03-18 08:08:59 +0100 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2015-03-18 08:08:59 +0100 |
commit | c4c4901173b0f4284534db1b6a3cfe865b05e15c (patch) | |
tree | f27d1546977bae78b33180192cc80eecc568bf4c /src/fontloader/misc/fontloader-util-str.lua | |
parent | b966e35c9df3cca2a25baaf68574d0b8d94eef39 (diff) | |
parent | f5dd1ec3517cda47e5a48221d4ff5cfced12ea06 (diff) | |
download | luaotfload-c4c4901173b0f4284534db1b6a3cfe865b05e15c.tar.gz |
Merge pull request #266 from phi-gamma/master
fontloader fallback
Diffstat (limited to 'src/fontloader/misc/fontloader-util-str.lua')
-rw-r--r-- | src/fontloader/misc/fontloader-util-str.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fontloader/misc/fontloader-util-str.lua b/src/fontloader/misc/fontloader-util-str.lua index a040b01..a677a82 100644 --- a/src/fontloader/misc/fontloader-util-str.lua +++ b/src/fontloader/misc/fontloader-util-str.lua @@ -361,10 +361,10 @@ strings.tracers = tracedchars function string.tracedchar(b) -- todo: table if type(b) == "number" then - return tracedchars[b] or (utfchar(b) .. " (U+" .. format('%05X',b) .. ")") + return tracedchars[b] or (utfchar(b) .. " (U+" .. format("%05X",b) .. ")") else local c = utfbyte(b) - return tracedchars[c] or (b .. " (U+" .. format('%05X',c) .. ")") + return tracedchars[c] or (b .. " (U+" .. (c and format("%05X",c) or "?????") .. ")") end end |