From: james r. <ji...@re...> - 2010-05-01 20:57:14
|
Ian, That was my thought, too. I was going to email you to see if we could change all the char* stuff in the stack and interpreter to QStrings? Looking forward to your commit. Jim On Fri, Apr 30, 2010 at 9:59 PM, Ian Larsen <dr...@gm...> wrote: > All, > > I was wrong about Flex; it handles Utf8 just fine. The problem was > with the way QStrings were being converted. I have a working version > that I'm going to test some more and commit tomorrow. > > -Ian > > On Fri, Apr 30, 2010 at 5:53 PM, Ian Larsen <dr...@gm...> wrote: > > All, > > > > I believe the reason you're seeing the question marks in the output is > > because Gnu Flex and Bison, which the basic256 parser is written in, > > doesn't support Unicode at all. > > > > There are no simple fixes for this, unfortunately. Here are some > possibilities: > > > > 1) Encode ALL strings in a program's source code using base64 and then > > decode them prior to pushing them onto the operand stack. This is an > > ugly hack, but right now would be the path of least resistance. > > 2) Find a drop-in replacement for Flex and Bison that supports Unicode > > 3) Write a custom parser that supports Unicode. This would be a *lot* > > of work, but would be a lot of fun for someone interested in learning > > compiler design. > > > > If anyone has any other ideas, please let me know. > > > > -Ian > > > > > > > > On Fri, Apr 30, 2010 at 11:06 AM, <web...@bi...> wrote: > >> Ian, > >> > >> I am very glad that you have returned to the development BASIC256! I > >> would just tell you about a serious problem that exists for users who > >> use the Russian language. Attached - screenshot. > >> > >> I made a patch for version 0.9.5 which was published 12/2009 for the > >> distribution of ALT Linux. Of course, this patch is not urgent, since > >> you have done a lot of changes. Can I ask you to make necessary > >> changes (because I have little experience) or the provision of > >> Russian-speaking users - only my problem? :-) > >> > >>> On this list about two weeks ago we got a french translation if anyone > >>> would like to add that in. If not, I'll get around to it eventually. > >> > >> I have a little more experience, so it's better if you did. > >> > >> -- > >> Blessing, > >> Sergei Irupin > >> http://rnd-lug.blogspot.com/ > > > > > > > > -- > > My PGP Public Key: > > http://www.scrapshark.com/pubkey.txt > > > > > > -- > My PGP Public Key: > http://www.scrapshark.com/pubkey.txt > > |