John Labenski <jlabenski@...> writes:

> It is up to the Lua programmer to know (or check) if a string may
> contain multibyte Unicode chars or not before using Lua's string
> functions since they assume single byte chars.


maybe hard to do:

example Format\FORMAT~4.LUA is returned by fullName.ShortPath
this is not a utf8 string ~ is 126

Format\FORMAT~4.LUA  
F       70
o       111
r       114
m       109
a       97
t       116
\       92
F       70
O       79
R       82
M       77
A       65
T       84
~       126
4       52
.       46
L       76
U       85
---------------
so string.match(fullName.ShortPath,'(.*)%.lua') returns nil

Andre



------------------------------------------------------------------------------
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
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to