--
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To post to this group, send email to MOO-...@googlegroups.com.
Visit this group at https://groups.google.com/group/MOO-talk.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To post to this group, send email to MOO-...@googlegroups.com.
Visit this group at https://groups.google.com/group/MOO-talk.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/MOO-talk/efe16526-e8c7-4ac9-8fff-f274b029035f%40googlegroups.com.
I will add that you also need to change all the MOO string functions to instead use std::string equivalent functions or recode them. If you're making really heavy use of Chinese it might be more memory efficient to use std::u32string, but for the most part std::string handles utf8 very well.Lastly you'd still need to disallow carriage return characters based on the way the MOO database works.
On Mon, Dec 16, 2019 at 1:16 AM Michael Munson <michael...@gmail.com> wrote:
- Change the representation of the MOO data type string (which is a char *) into a std::string, this includes changing every representation of char * to std::string, and making sure all the places that use const char * convert that into a std::string before using it.
- Thats pretty much it.
On Sat, Dec 14, 2019 at 5:47 PM Jesús Pavón <galo...@gmail.com> wrote:
--Can anyone tell me where to start? I need to implement unicode in stunt, but I don't understand how it works the patch, patch it is blocked from applying.What should I modify? I'm pretty lost.Thanks!El viernes, 18 de enero de 2019, 4:18:38 (UTC+1), Nathan Smith escribió:Hi all,I decided to try compile the unicoe patch into stunt.I used the standard unicode patch for lambdamoo, and just did it by hand.Unfortunately, I get this error:utf8.c: In function ‘const char* utf8_substr(const char*, int32, int32)’:utf8.c:91:11: error: expected unqualified-id before ‘new’char* new = NULL;^utf8.c:91:11: error: expected initializer before ‘new’utf8.c:185:9: error: expected type-specifier before ‘=’ tokennew = mymalloc(numbytes + 1, M_STRING);^I've tried googling around, but nothing really seems to fit.I see nothing wrong with the syntax... I'd appreciate help if possible. Thanks!
You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to MOO-talk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/MOO-talk/1f423dbf-3d71-4d48-8612-d2d137eed39a%40googlegroups.com.