IDE possible bug (please test before bug report)

Everything else that doesn't fall into one of the other PB categories.
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 796
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

IDE possible bug (please test before bug report)

Post by Zebuddi123 »

Hi to all

Code: Select all

; {
; { 
line 1. ( semicolon space brace cr+lf ) causes the compiler to spit out a syntax error. This was taken for the clipboard via copy Google translate. looking at the line in notepad++ (show all characters) I entered line 2 manually. The same characters ( semicolon space brace cr+lf ) and the compiler is happy with that no sysntax error

if i paste again so i now have 4 lines ( 2 sets )

line 1 - fails -copied
line 2 - passes - manually entered
line 3 - fails --\ __ pasted as from above
line 4 - passes --/

place comma+space in front of line 1 and it passes
:? :shock:

so it is not a positional thing ie only effecting line 1

please could anyone confirm/test or explain what i`m missing, before i put a bug report in. Using win 7 x64. IDE x64 & x86.

Thanks Zebuddi. :D
malleo, caput, bang. Ego, comprehendunt in tempore
Thade
Enthusiast
Enthusiast
Posts: 266
Joined: Sun Aug 03, 2003 12:06 am
Location: Austria

Re: IDE possible bug (please test before bug report)

Post by Thade »

Copying and Pasting your code shows ??; { in Line 1.
Removing the ?? and compiling shows no syntax error ... works normal.

Actually I do not know where the ?? comes from - its not seen in the source window of chrome.
[Edit]: Clicking on *select all* and rightclick on the code shows 2 unknown signs ...
--------------
Yes, its an Irish Wolfhound.
Height: 107 cm; Weight: 88 kg
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: IDE possible bug (please test before bug report)

Post by IdeasVacuum »

The ?? is possibly a BOM (Byte Order Mark)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 796
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: IDE possible bug (please test before bug report)

Post by Zebuddi123 »

Thanks for the reply gents :D never thought about checking for other characters as i just assumed :oops: show all character in notepad++ was all the characters.

looks like you were both right, i can now just check for it in the return string

Thanks Zebuddi. :)

http://askubuntu.com/questions/267000/c ... mark-65279
http://www.alansofficespace.com/unicode/unicd65279.htm

Code: Select all

t$="; {"
For i=1 To Len(t$)
	a=Asc(Mid(t$,i))
	Debug Str(a)+" "+Chr(a)
Next
output:
65279 
65279 
59 ;
32
123 {
malleo, caput, bang. Ego, comprehendunt in tempore
Post Reply