diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-09-27 20:05:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-09-27 20:05:00 +0200 |
commit | 7d5303b65f33ee0ea99f83f9a7aaa4672a405660 (patch) | |
tree | cad2e7cd1c6a7e2345b469e4f80191589ff46c40 /scripts/context/stubs/mswin/mtxrun.lua | |
parent | 0708cb2babdfd4c6f9cb86dd408992716a0e99cf (diff) | |
download | context-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.lua | 4 |
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) |