Skip to content

Error at startup with LANG set to en_US.ISO-8859-1 #145

Open

Description

@psergiu

On MacOS 26
durdraw 0.30.1 installed from brew
LANG is set to "en_US.ISO-8859-1" instead of "en_US.UTF-8"
also tried with --cp437
error at startup:

Traceback (most recent call last):
  File "/opt/homebrew/bin/durdraw", line 6, in <module>
    sys.exit(main())
             ~~~~^^
  File "/opt/homebrew/Cellar/durdraw/0.30.1/libexec/lib/python3.14/site-packages/durdraw/log.py", line 179, in inner
    raise e
  File "/opt/homebrew/Cellar/durdraw/0.30.1/libexec/lib/python3.14/site-packages/durdraw/log.py", line 172, in inner
    return func(*args, **kwargs)
  File "/opt/homebrew/Cellar/durdraw/0.30.1/libexec/lib/python3.14/site-packages/durdraw/main.py", line 248, in main
    ui = UI_Curses(app)
  File "/opt/homebrew/Cellar/durdraw/0.30.1/libexec/lib/python3.14/site-packages/durdraw/durdraw_ui_curses.py", line 79, in __init__
    locale.setlocale(locale.LC_ALL, '')    # set your locale
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.14.7/Frameworks/Python.framework/Versions/3.14/lib/python3.14/locale.py", line 614, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Activity

  1. cmang commented on Sep 24, 2026

    @cmang
    Member

    Similar to the other issue... supporting non-Utf-8 terminals is a fine feature request. Crashing ungracefully on other terminal encoding types, is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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