~crc_/retroforth#100: 
String with emoji

In REPL mode, strings with emoji are displayed correctly:

$ retro
RETRO 12 (2024.1)
524288 Max, 45386 Used, 478902 Free
'1🔁2 s:put nl
1🔁2

But if you run the script, the emoji are lost (converted to #1)

$ cat emoji.retro
~~~
'1🔁2 s:put nl
~~~
$ cat emoji.retro | hexdump -C
00000000  7e 7e 7e 0a 27 31 f0 9f  94 81 32 20 73 3a 70 75  |~~~.'1....2 s:pu|
00000010  74 20 6e 6c 0a 7e 7e 7e  0a                       |t nl.~~~.|
$ retro emoji.retro
12
$ retro emoji.retro | hexdump -C
00000000  31 01 32 0a                                       |1.2.|
Status
REPORTED
Submitter
Aleksey Ryndin
Assigned to
Submitted
3 months ago
Updated
2 months ago
Labels
minor-bug retro/nga

~crc_ 3 months ago

Thanks for reporting this; I'm looking into it.

~crc_ 2 months ago

I believe this is caused by use of C strings (ASCII) in the internal source file handling, instead of using Retro-style cell based strings. I'm now working on writing the needed support functions so I can fix this.

Register here or Log in to comment, or comment via email.