- Oct
- 358
- 2
Hello --
The following python (3) script when executed with python support on, will fail when processing the command line. outside of tcc (exec with python) it works fine.
I posted this on the python group and the the comments seem to indicate badly formed arguments
# this is a test
import sys
print('hello from python')
print('Number of arguments:', len(sys.argv), 'arguments.')
print('Argument List:', str(sys.argv))
==========================================================
the above was saved as foo.py and I rand it at the tcc prompt
foo.py this is a test -- here is the output
==========================================================
Argument List: hello from python
Number of arguments: 5 arguments.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:/DOCUME~1/Frank/LOCALS~1/Temp/foo.py", line 10, in <module>
print('Argument List:', str(sys.argv))
File "C:\Python32\Lib\encodings\cp437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 2-18: character maps to <undefined>
The following python (3) script when executed with python support on, will fail when processing the command line. outside of tcc (exec with python) it works fine.
I posted this on the python group and the the comments seem to indicate badly formed arguments
# this is a test
import sys
print('hello from python')
print('Number of arguments:', len(sys.argv), 'arguments.')
print('Argument List:', str(sys.argv))
==========================================================
the above was saved as foo.py and I rand it at the tcc prompt
foo.py this is a test -- here is the output
==========================================================
Argument List: hello from python
Number of arguments: 5 arguments.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:/DOCUME~1/Frank/LOCALS~1/Temp/foo.py", line 10, in <module>
print('Argument List:', str(sys.argv))
File "C:\Python32\Lib\encodings\cp437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode characters in position 2-18: character maps to <undefined>