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
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