>
> If you change the defines
>
> 30 #define WXLUA_USE_WXSTR_CONVUTF8 1
> 31 #define WXLUA_USE_WXSTR_CONVCURRENT 0
>
> to
>
> 30 #define WXLUA_USE_WXSTR_CONVUTF8 0
> 31 #define WXLUA_USE_WXSTR_CONVCURRENT 1
>
it does work
I think there a problem with the current version:
é is character 130 should display as ‚ in the editor just a bit strange
this character set thing.
---------------- command line
echo {é} > xx
--- added the following code in editor.lua at line 891
for w in string.gmatch(file_text, ".") do
print(w,string.byte(w), #w, '<<<')
end
for w in string.gmatch(file_text, ".") do
editor:AppendText('{'..string.byte(w)..'}'..'<'..w..'>')
end
print(editor.Length, 'before append character')
editor:AppendText('='..string.char(130)..'=')
print(editor.Length, 'before append text', #file_text)
editor:AppendText(file_text) -- this does not append any text
print(editor.Length, 'after append text', #file_text)
------------------------------------------------
command line:
E:\wxWidgets\wxLua\cmake\apps\wxlua\Debug\wxLua.exe editor.wx.lua xx
--------------------- output
[E:\wxWidgets\wxLua\samples]{ 123 1 <<<
130 1 <<<
} 125 1 <<<
13 1 <<<
10 1 <<<
30 before append character
30 before append text 5
30 after append text 5
----------------------------: file displayed in the editor
{123}<{>{125}<}>{13}<
>{10}<
>
Notice that character 130 cannot be added to the editor.
editor:AppendText('='..string.char(130)..'=') does nothing
also if a file contains a character above 128 then it cannot be edited
editor:AppendText(file_text) does nothing
André
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users