Skip to content

[ENH]: Support unicode for labels #862

@tturocy

Description

@tturocy

Gambit almost (but not quite) predates Unicode, but certainly the main codebase predates good support for Unicode across platforms.

We should ensure that non-ASCII characters can be used in object labels throughout. The recommendation would be that we assume UTF-8, and insist only on byte-wise equality (rather than normalised equality) as far as uniqueness of labels (within the scopes in which labels are now required to be unique).

A known limitation is that at the moment encoding/decoding of labels in pygambit uses ASCII, so manipulating labels with non-ASCII characters definitely does not work in Python at present.

The graphical interface is somewhat more supportive of non-ASCII characters, but a thorough check/audit should be done to ensure labels are handled consistently everywhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++Items which involve writing in C++cythonItems which involve coding in CythonguiItems which involve the graphical interface/wxWidgetspythonItems which involve coding in Python

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions