Page 1 of 1
Suggestion for UTF Warning
Posted: Mon Jun 13, 2016 5:07 pm
by CalamityJames
I suggest that for Purebasic 5.5 on that a warning should be given if a non-UTF program is opened. Such a feature would have saved me half an hour today when I forgot which version of PB I was using and a function using an external program stopped working. It might well save more half hours in the future!
Re: Suggestion for UTF Warning
Posted: Mon Jun 13, 2016 5:45 pm
by skywalk
Prepend a warning to your code
Code: Select all
CompilerIf #PB_Compiler_Unicode = 0
CompilerError "This app requires #PB_Compiler_Unicode = 1."
CompilerEndIf
Re: Suggestion for UTF Warning
Posted: Mon Jun 13, 2016 5:51 pm
by CalamityJames
Sadly, it doesn't work in PB 5.5. It did work in 5.42 when I turned unicode off, but no error was thrown up in 5.5 (unicode obviously can't be turned off there).
Re: Suggestion for UTF Warning
Posted: Mon Jun 13, 2016 5:58 pm
by Little John
CalamityJames wrote:I suggest that for Purebasic 5.5 on that a warning should be given if a non-UTF program is opened.
What do you mean with "non-UTF program"?
Re: Suggestion for UTF Warning
Posted: Mon Jun 13, 2016 6:00 pm
by CalamityJames
Good Point. I mean non-unicode.
Re: Suggestion for UTF Warning
Posted: Mon Jun 13, 2016 6:13 pm
by Little John
I see.
Yes, I agree that such a warning would be very helpful.