Skip to content

bug: Windows Unicode encoding crash when printing emoji #277

@evalnerd

Description

@evalnerd

Bug Report

CIB Mango Tree version:

git version 2.51.1.windows.1

Current behavior:

App does not open on Windows laptop

Expected behavior:

App not opening; traceback below from CIBMangoTree_log.txt

Steps to reproduce:

  1. Download app from github
  2. install
  3. open on windows laptop

Related code:

Traceback (most recent call last):
File "cibmangotree_gui.py", line 24, in
File "rich\console.py", line 1692, in print
File "rich\console.py", line 866, in exit
File "rich\console.py", line 824, in _exit_buffer
File "rich\console.py", line 2033, in _check_buffer
File "rich\console.py", line 2069, in _write_buffer
File "rich_windows_renderer.py", line 17, in legacy_windows_render
File "rich_win32_console.py", line 441, in write_styled
File "rich_win32_console.py", line 402, in write_text
File "encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f96d' in position 0: character maps to

insert short code snippets here

Other information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions