On Tue, Feb 12, 2019 at 9:48 PM Fred Engst <engst.uibe(a)gmail.com> wrote:
[...]
Here is a little test script and output:
---------------------------------------------------------
gretl version 2019a-git
Current session: 2019-02-13 10:26
# assign unicode text
? string teststring = "ΑΒΓΔ"
[...]
? string teststring[1] = "Γ"
Error executing script: halting
> string teststring[1] = "Γ"
I see what's happening there. When you try to assign to teststring[1], gretl
is looking for a single byte to replace the first byte in the original
string, but
upper-case Gamma in UTF-8 is composed of two bytes, 0xCE and 0x93.
We should be able to handle that with some work...
Allin