Skip to content

mkqstrdata encoding assumption on windows msys #3408

Closed
@ladyada

Description

@ladyada

removing line 144 'solves' it!

see https://github.com/adafruit/circuitpython/pull/3219/files for possible reasons

ladyada@LimorFried MINGW64 ~/Dropbox/micropython/circuitpython
$ make -C mpy-cross
make: Entering directory '/c/Users/ladyada/Dropbox/micropython/circuitpython/mpy-cross'
Use make V=1, make V=2 or set BUILD_VERBOSE similarly in your environment to increase build verbosity.
QSTR updated
Traceback (most recent call last):
  File "../py/makeqstrdata.py", line 455, in <module>
    encoding_table = compute_huffman_coding(translations, qstrs, args.compression_filename)
  File "../py/makeqstrdata.py", line 144, in compute_huffman_coding
    print("//", ord(ch), s, counts[ch], canonical[ch], renumbered)
  File "C:/msys64/mingw32/lib/python3.8/encodings/cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\x80' in position 0: character maps to <undefined>
make: *** [../py/py.mk:346: build/genhdr/qstrdefs.generated.h] Error 1
make: *** Deleting file 'build/genhdr/qstrdefs.generated.h'
make: *** Waiting for unfinished jobs....
make: Leaving directory '/c/Users/ladyada/Dropbox/micropython/circuitpython/mpy-cross'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions