[Encore] unicode and $ as a position locator
Daniel Jung
jung at uib.no
Mon Feb 12 17:31:12 MST 2007
Hi
I posted this question a while ago, but the problem still remains.
I'm trying again.
EnCore 5 uses Matthieu Fenniac's lambdamoo 1.8.1u4 unicode patch.
Unfortunately, there seems to be an error in string computation
(1) when using $ as a position locator, and, subsequently,
(2) when using substitute() after a match().
index(), rindex() and match() seem to work fine elsewise.
EXAMPLES
"abc"[$] => "c"
"åbc"[$] => ""
substitute("%2", match("*** abc def ghi!!!", "%(%w*%) def %(%w*%)"))
=> "ghi"
substitute("%2", match("*** abc def gåi!!!", "%(%w*%) def %(%w*%)"))
=> "g"
Has anyone found a workaround or made a patch for that - or is anyone up
to the challenge?
Thanks:
- Daniel
More information about the Encore
mailing list