summaryrefslogtreecommitdiff
path: root/scripts/context/stubs/mswin/mtxrun.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-09-27 20:05:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-09-27 20:05:00 +0200
commit7d5303b65f33ee0ea99f83f9a7aaa4672a405660 (patch)
treecad2e7cd1c6a7e2345b469e4f80191589ff46c40 /scripts/context/stubs/mswin/mtxrun.lua
parent0708cb2babdfd4c6f9cb86dd408992716a0e99cf (diff)
downloadcontext-7d5303b65f33ee0ea99f83f9a7aaa4672a405660.tar.gz
beta 2011.09.27 20:05
Diffstat (limited to 'scripts/context/stubs/mswin/mtxrun.lua')
-rw-r--r--scripts/context/stubs/mswin/mtxrun.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua
index 7061c54d5..3e6d9e303 100644
--- a/scripts/context/stubs/mswin/mtxrun.lua
+++ b/scripts/context/stubs/mswin/mtxrun.lua
@@ -3719,7 +3719,7 @@ local function utf16_to_utf8_be(t)
if right then
local now = 256*left + right
if more > 0 then
- now = (more-0xD800)*0x400 + (now-0xDC00) + 0x10000
+ now = (more-0xD800)*0x400 + (now-0xDC00) + 0x10000 -- the 0x10000 smells wrong
more = 0
r = r + 1
result[r] = utfchar(now)
@@ -3747,7 +3747,7 @@ local function utf16_to_utf8_le(t)
if right then
local now = 256*right + left
if more > 0 then
- now = (more-0xD800)*0x400 + (now-0xDC00) + 0x10000
+ now = (more-0xD800)*0x400 + (now-0xDC00) + 0x10000 -- the 0x10000 smells wrong
more = 0
r = r + 1
result[r] = utfchar(now)