Skip to content

fix(closet_llm): replace non-ASCII symbols in progress output (#1034)#1100

Open
arnoldwender wants to merge 1 commit intoMemPalace:developfrom
arnoldwender:fix/closet-llm-gbk-symbols
Open

fix(closet_llm): replace non-ASCII symbols in progress output (#1034)#1100
arnoldwender wants to merge 1 commit intoMemPalace:developfrom
arnoldwender:fix/closet-llm-gbk-symbols

Conversation

@arnoldwender
Copy link
Copy Markdown
Contributor

What and Why

closet_llm.py prints , , and (U+2713, U+2717, U+2014) during mempalace closets regen. These characters cannot be encoded in GBK (Windows PowerShell/CMD default), causing UnicodeEncodeError on the same code path fixed in miner.py via #681.

cli.py has the same problem on the sweep error path ().

Root Cause

  • closet_llm.py:244 in dry-run banner
  • closet_llm.py:266 + in LLM-failed message
  • closet_llm.py:303 + in success message
  • cli.py:187 in sweep error message

Change Summary

Replace non-ASCII symbols with ASCII equivalents: [OK], [FAIL], [!], and -.

Test Plan

  • All 1066 existing tests pass
  • ruff check clean

Closes #1034

…ace#1034)

GBK consoles (Windows PowerShell/CMD default) cannot encode U+2713 (✓),
U+2717 (✗), and U+2014 (—). The same class of UnicodeEncodeError fixed
in miner.py via MemPalace#681 affects closet_llm.py and cli.py.

Replace with ASCII equivalents: [OK], [FAIL], [!], and hyphen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] UnicodeEncodeError when running mempalace mine on GBK console

1 participant