non-ascii character in the path of messages.dat #165
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-16#165
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?
Hello,
when you are determining the appdata path on windows, you get the value in whatever encoding windows chooses, which then results in an OperationalError during db connection opening. It would be useful to decode it to an unicode string, perhaps using sys.getfilesystemencoding. And it would help to have the whole logic only in shared, not duplicated it in the main script. Or is there any difference?
windows uses unicode since Windows NT. GetFileSystemEncoding sometimes returns mbcs on Windows even if it is unicode:
http://docs.python.org/2/library/sys.html#sys.getfilesystemencoding
Yeach, they do that internally. Perhaps there is better way of getting the user's appdata path?
You can use the environment variable %APPDATA% on windows, or check if the platform is windows NT and just "assume" UTF-8.
Is this still a problem?