Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erratic results when running legacy programs that do single character read #87

Open
denhamson opened this issue Jan 27, 2017 · 11 comments

Comments

@denhamson
Copy link

Running a legacy program that executes command Read IN:TIMEOUT appears to work OK for alphabetic and numeric characters but returns strange results with punctuation characters. Examples "/" character input echoes as "¿" and "" character input echoes as "8" with corresponding wrong ascii values in the IN variable.

@eduard93
Copy link
Contributor

eduard93 commented Jan 27, 2017

Unable to reproduce with:

USER > r a:2
/
USER > w a 
/

Please provide code to reproduce.

@denhamson
Copy link
Author

denhamson commented Jan 27, 2017 via email

@denhamson
Copy link
Author

denhamson commented Jan 27, 2017 via email

@nikitaeverywhere
Copy link
Member

@denhamson, attachments are still not attached (I guess the mail response doesn't work for attachments here). Thanks!

@denhamson
Copy link
Author

denhamson commented Jan 28, 2017 via email

@denhamson
Copy link
Author

denhamson commented Jan 28, 2017 via email

@nikitaeverywhere
Copy link
Member

@denhamson, I still cannot see the attachments. Try using zip for other file types. You need just to drag&drop file onto the comment input here on GitHub.

@denhamson
Copy link
Author

denhamson commented Jan 28, 2017 via email

@nikitaeverywhere
Copy link
Member

@denhamson, there is still no attachments. Please go directly to GitHub here: #87 and upload the files (zip).

@denhamson
Copy link
Author

attachments

readtest.xml.pdf
readtestSampleOutput.pdf

@eduard93
Copy link
Contributor

eduard93 commented Jan 28, 2017

testreadsingle
	set timeout=4 ; four second timeout
	read !,"single>",*in:timeout
	goto:in=13 testreadfixed ; exit when empty response
	write !,"in=",in,?10,"$zb=",$zb,?20,"$za=",$za,?30,"$test=",$test
	goto testreadsingle
testreadfixed
	read !,"fixed>",in#1:timeout
	goto:in="" testreadnormal ; exit when empty response
	write !,"in=",in,?10,"$zb=",$zb,?20,"$za=",$za,?30,"$test=",$test
	goto testreadfixed
testreadnormal
	read !,"normal>",in:timeout
	quit:in="" ; quit when empty response
	write !,"in=",in,?10,"$zb=",$zb,?20,"$za=",$za,?30,"$test=",$test
	goto testreadnormal

do ^readtest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants