Skip to content

Commit eeaf3af

Browse files
committed
fix: Replace Unicode arrows with ASCII for Windows compatibility
Fixes UnicodeEncodeError on Windows when running sync commands. Issue: - Windows console (cp1252 encoding) cannot display Unicode arrow character (→) - Error: 'charmap' codec can't encode character '\u2192' - Occurred at project.py:425 and project.py:474 Solution: - Changed 'local → cloud' to 'local -> cloud' - Maintains readability while ensuring Windows compatibility Testing: - Verified on Windows 11 ARM64 - All sync commands now execute without encoding errors - Part of comprehensive SPEC-20 testing (PR #405) Related: PR #411 (incomplete Windows Unicode fix)
1 parent 021af74 commit eeaf3af

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/basic_memory/cli/commands/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def sync_project_command(
422422
dry_run: bool = typer.Option(False, "--dry-run", help="Preview changes without syncing"),
423423
verbose: bool = typer.Option(False, "--verbose", "-v", help="Show detailed output"),
424424
) -> None:
425-
"""One-way sync: local cloud (make cloud identical to local).
425+
"""One-way sync: local -> cloud (make cloud identical to local).
426426
427427
Example:
428428
bm project sync --name research
@@ -471,7 +471,7 @@ async def _get_project():
471471
)
472472

473473
# Run sync
474-
console.print(f"[blue]Syncing {name} (local cloud)...[/blue]")
474+
console.print(f"[blue]Syncing {name} (local -> cloud)...[/blue]")
475475
success = project_sync(sync_project, bucket_name, dry_run=dry_run, verbose=verbose)
476476

477477
if success:

0 commit comments

Comments
 (0)