File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 1673, in print
with self:
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 865, in __exit__
self._exit_buffer()
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 823, in _exit_buffer
self._check_buffer()
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\console.py", line 2027, in _check_buffer
legacy_windows_render(buffer, LegacyWindowsTerm(self.file))
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\_windows_renderer.py", line 17, in legacy_windows_render
term.write_styled(text, style)
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\_win32_console.py", line 442, in write_styled
self.write_text(text)
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\site-packages\rich\_win32_console.py", line 403, in write_text
self.write(text)
File "C:\hostedtoolcache\windows\Python\3.10.11\x64\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u258c' in position 0: character maps to <undefined>
Click to expand
What platform (Win/Linux/Mac) are you running on?
Windows
What terminal software are you using?
No terminal; we're in a GitHub CI job, so we're writing to standard output.
Describe the bug
Markdown blockquotes emit a U+258C (LEFT HALF BLOCK) character:
https://github.com/Textualize/rich/blob/26152e9cc95eef9c8f363d7bf1dfda426275348d/rich/markdown.py#L215-L217
On Windows, that this causes the error:
https://github.com/fonttools/fontbakery/actions/runs/7931077595/job/21657155530
Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? Windows What terminal software are you using? No terminal; we're in a GitHub CI job, so we're writing to standard output.