My listing is eating itself...?

Anything QL Software or Programming Related.
User avatar
TMD2003
Trump Card
Posts: 168
Joined: Sat Oct 10, 2020 12:18 pm

Re: My listing is eating itself...?

Post by TMD2003 »

As some of you suspected, I am using UTF-8 (and I wouldn't usually need to switch), but presumably a better encoding to use is ANSI... right?

The corruption has completely sorted itself out - all I had to do was get shot of the local variables line. Though I'll try that trick with three LOCal lines and see if it still works.

The program is now complete! Likely as not it won't see the light of day before Christmas - it's not up to me to release it - but it'll get there.

A round of extra beansprouts in your next chow mein to all who helped!


Spectribution: Dr. Jim's Sinclair computing pages.
Features my own programs, modified type-ins, RZXs, character sets & UDGs, and QL type-ins... so far!
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: My listing is eating itself...?

Post by NormanDunbar »

The locals problem is a bug. 9 is the limit. Maybe SMSQ has fixed the problem of course.

Even with ANSI encoding, the QL character set doesn't completely match up. I think £ # (c) Euro give problems. Maybe more.

Cheers,
Norm.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
RalfR
Aurora
Posts: 871
Joined: Fri Jun 15, 2018 8:58 pm

Re: My listing is eating itself...?

Post by RalfR »

NormanDunbar wrote:The locals problem is a bug. 9 is the limit.
Just with JS Rom (I thought...or was it JM?).


4E75 7000
User avatar
NormanDunbar
Forum Moderator
Posts: 2251
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: My listing is eating itself...?

Post by NormanDunbar »

I've only had JS ROMs, so I'm almost certain it failed on that too.


Why do they put lightning conductors on churches?
Author of Arduino Software Internals
Author of Arduino Interrupts

No longer on Twitter, find me on https://mastodon.scot/@NormanDunbar.
User avatar
RalfR
Aurora
Posts: 871
Joined: Fri Jun 15, 2018 8:58 pm

Re: My listing is eating itself...?

Post by RalfR »

NormanDunbar wrote:I've only had JS ROMs, so I'm almost certain it failed on that too.
Ah, ok, so I was a bit right :D


4E75 7000
User avatar
dilwyn
Mr QL
Posts: 2753
Joined: Wed Dec 01, 2010 10:39 pm

Re: My listing is eating itself...?

Post by dilwyn »

Always a good idea to familiarise yourself with the list of ROM bugs in the various ROM versions. Simon and Mark did a fantastic job with those articles - there are so many potential problems in there which just add to the difficulty of debugging basic programs if you don't know about them.
TMD2003 wrote:As some of you suspected, I am using UTF-8 (and I wouldn't usually need to switch), but presumably a better encoding to use is ANSI... right?
...so your next job will be to write a character conversion filter program :)

Seriously, UTF8 may be OK as long as you stick to QL character codes below 128, and are aware of the minor differences of a few characters such as the pound, hash, and copyright, I think those would still persist with ANSI.
TMD2003 wrote:A round of extra beansprouts in your next chow mein to all who helped!
Yuk, no thanks! :D


User avatar
janbredenbeek
Super Gold Card
Posts: 630
Joined: Wed Jan 21, 2015 4:54 pm
Location: Hilversum, The Netherlands

Re: My listing is eating itself...?

Post by janbredenbeek »

NormanDunbar wrote:The locals problem is a bug. 9 is the limit. Maybe SMSQ has fixed the problem of course.
I've had similar experiences with too many LOCals on JS. Minerva and SMSQ are fine.

Jan


Post Reply