issue-#132 Unwanted characters in the definition... Refs:#19
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: issue-#132 Unwanted characters in the definition... Refs
I can verify that
It appears there are 4 characters added.
-Doug
Code: Select all
DEFINITION Foo;
TYPE
Βασε = EXTENSIBLE RECORD END;
Εχτ = RECORD (Βασε 00X 懨 00X 00X ) END;
PROCEDURE Do;
END Foo.
-Doug
Re: issue-#132 Unwanted characters in the definition... Refs
It is a very strange error.
Change in the PROCEDURE ProperString (s: ARRAY OF SHORTCHAR); of MODULE DevBrowser;
the line
i := 0; WHILE (s # 0X) & (s # "^") DO global.out.WriteChar(str); INC(i) END
to
i := 0; WHILE (i < LEN(str$)) & (s # 0X) & (s # "^") DO global.out.WriteChar(str); INC(i) END
and it works.
Why does not work the compare s # 0X ?
- Helmut
Change in the PROCEDURE ProperString (s: ARRAY OF SHORTCHAR); of MODULE DevBrowser;
the line
i := 0; WHILE (s # 0X) & (s # "^") DO global.out.WriteChar(str); INC(i) END
to
i := 0; WHILE (i < LEN(str$)) & (s # 0X) & (s # "^") DO global.out.WriteChar(str); INC(i) END
and it works.
Why does not work the compare s # 0X ?
- Helmut
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: issue-#132 Unwanted characters in the definition... Refs
Partial answer.
SHORTCHAR can not hold a Uni char.
SHORTCHAR can not hold a Uni char.
Re: issue-#132 Unwanted characters in the definition... Refs
Now I see the error. I must be blind.
The correct line is
i := 0; WHILE (str # 0X) & (str # "^") DO global.out.WriteChar(str); INC(i) END
Helmut
The correct line is
i := 0; WHILE (str # 0X) & (str # "^") DO global.out.WriteChar(str); INC(i) END
Helmut
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: issue-#132 Unwanted characters in the definition... Refs
I prepared testing version with Helmut fix.
http://blackboxframework.org/unstable/i ... .7.697.zip
Diff:
http://redmine.blackboxframework.org/pr ... 8bd250499c
http://blackboxframework.org/unstable/i ... .7.697.zip
Diff:
http://redmine.blackboxframework.org/pr ... 8bd250499c
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: issue-#132 Unwanted characters in the definition... Refs
The fix looks fine to me.
Note: We also need to update appbuild/AppVersion.txt to "1.7.1-a1".
- Josef
Note: We also need to update appbuild/AppVersion.txt to "1.7.1-a1".
- Josef
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: issue-#132 Unwanted characters in the definition... Refs
I have changed the app version
http://blackboxframework.org/unstable/i ... a1.698.zip
Doug, this issue is tested and ready for voting.
http://blackboxframework.org/unstable/i ... a1.698.zip
Doug, this issue is tested and ready for voting.
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: issue-#132 Unwanted characters in the definition... Refs
Vote has been created.