Failed to set locale #872
Labels
No Label
bug
build
dependencies
developers
documentation
duplicate
enhancement
formatting
invalid
legal
mobile
obsolete
packaging
performance
protocol
question
refactoring
regression
security
test
translation
usability
wontfix
No Milestone
No project
No Assignees
1 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Bitmessage/PyBitmessage-2024-12-21#872
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, while running the latest master branch, I encountered the following error:
A quick lookup with
locale -a
showed that my system has many locales, but none matching the required one. Although a bit weird, as the line, causing the error, namely:is calling only
pythonlocale.LC_ALL
which eventually is turned intoen_US.ISO8859-1
by Python'slocale.py
. So is it a Python-and-my-system-related bug or somewhat else, like a PyQT issue?Hi,
this is a known bug (it does not try UTF-8 but defaults to the default locale encoding), I just haven't opened a ticket yet. You can work around it in the meantime by using locale-gen to generate the locale that's missing.
@PeterSurda May I ask why we aren't trying to load UTF-8? I guess because of compatibility issues with specific chars? It would be far more universal if there UTF-8 (or maybe even UTF-16) would be used.
I fixed a bug and that opened a new one. I'll fix this one too, don't worry.
I'm not worrying, I'm here to help 😄
Please retry with the latest v0.6 branch and close if it's fixed. It will still complain but it will then try UTF-8 and that should succeed.
It works now. At least it didn't throw any errors regarding locale.