View Single Post
02/12/19, 12:57 AM   #1
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
[open] Character handling flaw

I haven't figured out what is special about it yet, but the "Latin small letter A with grave" (this guy: à) works fine in all text fields:

Lua Code:
  1. /script d('àààààààààààààààààààààààààà')



However, the second half of it gets treated as a space character which results in the code below splitting the string:

Lua Code:
  1. /script inStr = "1à1";for outStr in inStr:gmatch("%S+") do d(outStr) end



The lua website's demo, however, does not have this problem:

Lua Code:
  1. inStr = "1à1"
  2. for outStr in inStr:gmatch("%S+") do
  3.     print(outStr)
  4. end



I'm not sure how customized your lua implementation is, but do you fix issues like these?

Last edited by Dolby : 02/14/19 at 05:40 PM.
  Reply With Quote