Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

locale.strxfrm throws error 22 when passed category is not #777

Closed
oussjarrousse opened this issue Oct 18, 2024 · 1 comment
Closed

locale.strxfrm throws error 22 when passed category is not #777

oussjarrousse opened this issue Oct 18, 2024 · 1 comment
Labels

Comments

@oussjarrousse
Copy link

I am now getting an error related to the use of locale.strxfrm in 516 in journal.py.

Traceback (most recent call last):
  File "/Users/ouss/Documents/workspace/rednotebook/rednotebook/journal.py", line 624, in <module>
    main()
  File "/Users/ouss/Documents/workspace/rednotebook/rednotebook/journal.py", line 606, in main
    journal = Journal()
  File "/Users/ouss/Documents/workspace/rednotebook/rednotebook/journal.py", line 238, in __init__
    self.open_journal(journal_path)
  File "/Users/ouss/Documents/workspace/rednotebook/rednotebook/journal.py", line 401, in open_journal
    self.frame.categories_tree_view.categories = self.categories
  File "/Users/ouss/Documents/workspace/rednotebook/rednotebook/journal.py", line 514, in categories
    return sorted(
OSError: [Errno 22] Invalid argument

This happens when the category is in the en_US.UTF-8 locale... for example Arabic characters...

@oussjarrousse
Copy link
Author

duplicate of #778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant