Skip to content

New output windows fixes#326

Open
ArttuTupala wants to merge 3 commits into
new-outputsfrom
new_output_windows_fixes
Open

New output windows fixes#326
ArttuTupala wants to merge 3 commits into
new-outputsfrom
new_output_windows_fixes

Conversation

@ArttuTupala
Copy link
Copy Markdown
Collaborator

removing special characters causing printing issues

jkiviluo added a commit that referenced this pull request May 29, 2026
Replaces non-cp1252 characters (→ Δ ≥ ≠ λ α √ Γ) in strings that get
print()ed, logged, or shown in argparse --help with ASCII equivalents,
so emitting them never raises UnicodeEncodeError on a Windows cp1252
console or the rotating file log.

Scope: console/log/CLI-help emit paths in non-GUI code only.
Deliberately left untouched:
  * Qt GUI widget glyphs (checkboxes, arrows, status icons) — Qt renders
    Unicode fine and these are not a printing hazard.
  * matplotlib superscripts in plot_outputs/format_helpers.py.
  * DB parameter description= text in db_migration.py (written to the
    Spine DB, rendered in the Qt editor, never printed).
  * Comments and docstrings (never encoded to a console).

Updates test_lagrangian.py error-path matchers to the >=2 wording.
Also adds venv/ to .gitignore.

Supersedes PR #326 (irena-flextool/flextool), which was 132 commits
behind new-outputs and only covered three now-refactored spots.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant