Posted 11 August 2015 - 08:01 AM
Version:
Tested in 1.74
Description
When printing characters with a code of 192 or above, the Window API will explode with the message "window:94: Arguments must be the same length". This appears to be the call to term.blit.
This is a variation of 'the string bug', as you can see here - 0xC0 is hex for 192 and so the string length is being changed. A simple fix would be for the window API to only print characters between 32 and 127.
Expected Result
I'd expect ? to be printed in place of unprintable characters.
Reproduction Steps:
Tested in 1.74
Description
When printing characters with a code of 192 or above, the Window API will explode with the message "window:94: Arguments must be the same length". This appears to be the call to term.blit.
This is a variation of 'the string bug', as you can see here - 0xC0 is hex for 192 and so the string length is being changed. A simple fix would be for the window API to only print characters between 32 and 127.
Expected Result
I'd expect ? to be printed in place of unprintable characters.
Reproduction Steps:
-- Run Lua:
print(string.char(191)) -- Prints ?
print(string.char(192)) -- window:94: Arguments must be the same length