Menu

#373 2.5.3 Bad Character Used

2.5.next
open
nobody
None
7
2015-02-05
2014-05-15
deMimsy
No

Problem:
When loading a file in linuxcnc, I received the error "Bad character used"

Steps to Replicate:

Using version 2.5

Create two files:
(---------- test.ngc --------------)
o<foo_test> call
M2
(----------------------------------)

(---------- foo_test.ngc ----------)
o<foo_test> sub

1 = 0

o100 if [#1 EQ 0]
o<foo_test> return
o100 endif
o<foo_test> endsub
(----------------------------------)

Load "test.ngc" and you should receive the error.

What I have deduced:
The problem seems to lie with the line "o<foo_test> return"

Current workaround:
replace the line "o<foo_test> return" with "o<foo_test> endsub"
and everything seems to work

Extra Note:
This problem seems to be resolved in the 2.6 branch

Discussion