Ignore invalid characters #1

Closed
opened 2025-06-01 19:44:03 +02:00 by stb · 1 comment
Owner
buba-1  | Exception in thread Thread-1 (run):
buba-1  | Traceback (most recent call last):
buba-1  |   File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
buba-1  |     self.run()
buba-1  |   File "/usr/lib/python3.11/threading.py", line 975, in run
buba-1  |     self._target(*self._args, **self._kwargs)
buba-1  |   File "/buba/BubaAnimator.py", line 63, in run
buba-1  |     a.run()
buba-1  |   File "/buba/BubaAnimator.py", line 43, in run
buba-1  |     self.buba.simple_text(page=0, row=2, col=0, text="`abcdefghijklmnopqrstuvwxyz{|}~\u2302")
buba-1  |   File "/buba/BubaCmd.py", line 37, in simple_text
buba-1  |     self.display.simple_text(page, row, col, text, align)
buba-1  |   File "/venv/lib/python3.11/site-packages/pyfis/aegmis/mis1_text.py", line 57, in simple_text
buba-1  |     text = text.encode("CP437")
buba-1  |            ^^^^^^^^^^^^^^^^^^^^
buba-1  |   File "/usr/lib/python3.11/encodings/cp437.py", line 12, in encode
buba-1  |     return codecs.charmap_encode(input,errors,encoding_map)
buba-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
buba-1  | UnicodeEncodeError: 'charmap' codec can't encode character '\u2302' in position 31: character maps to <undefined>
``` buba-1 | Exception in thread Thread-1 (run): buba-1 | Traceback (most recent call last): buba-1 | File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner buba-1 | self.run() buba-1 | File "/usr/lib/python3.11/threading.py", line 975, in run buba-1 | self._target(*self._args, **self._kwargs) buba-1 | File "/buba/BubaAnimator.py", line 63, in run buba-1 | a.run() buba-1 | File "/buba/BubaAnimator.py", line 43, in run buba-1 | self.buba.simple_text(page=0, row=2, col=0, text="`abcdefghijklmnopqrstuvwxyz{|}~\u2302") buba-1 | File "/buba/BubaCmd.py", line 37, in simple_text buba-1 | self.display.simple_text(page, row, col, text, align) buba-1 | File "/venv/lib/python3.11/site-packages/pyfis/aegmis/mis1_text.py", line 57, in simple_text buba-1 | text = text.encode("CP437") buba-1 | ^^^^^^^^^^^^^^^^^^^^ buba-1 | File "/usr/lib/python3.11/encodings/cp437.py", line 12, in encode buba-1 | return codecs.charmap_encode(input,errors,encoding_map) buba-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ buba-1 | UnicodeEncodeError: 'charmap' codec can't encode character '\u2302' in position 31: character maps to <undefined> ```
Author
Owner

Workaround implemented in 539a1c8b84

Proper fix in PyFIS in https://github.com/CatoLynx/pyFIS/pull/4

Workaround implemented in https://git.hamburg.ccc.de/CCCHH/buba/commit/539a1c8b849c8ff58722733bdf56a33f4060051c Proper fix in PyFIS in https://github.com/CatoLynx/pyFIS/pull/4
stb closed this issue 2025-06-01 20:46:47 +02:00
Sign in to join this conversation.
No labels
animation
bug
feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: CCCHH/buba#1
No description provided.