NordicSemiconductor / zcbor

Low footprint C/C++ CBOR library and Python tool providing code generation from CDDL descriptions.
Apache License 2.0
105 stars 34 forks source link

Better Windows support #413

Closed oyvindronningstad closed 2 months ago

oyvindronningstad commented 2 months ago

Should we add utf-8 encoding to

tests/unit/test3_float16/floats.py 16: with open(os.path.join(sys.argv[1], "fp_bytes_decode.bin"), 'wb') as f: 28: with open(os.path.join(sys.argv[1], "fp_bytes_encode.bin"), 'wb') as f:

and

tests/unit/test3_float16/floats.py 16: with open(os.path.join(sys.argv[1], "fp_bytes_decode.bin"), 'wb') as f: 28: with open(os.path.join(sys.argv[1], "fp_bytes_encode.bin"), 'wb') as f:

?

@hakonfam Those files are written as binary, so can't specify encoding. But I found one more instance in zcbor.py.