Skip to content

non-ascii character in the path of messages.dat #165

Open

Description

@tyrylu

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?

Activity

  1. AyrA commented on Jun 6, 2013

    @AyrA

    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

  2. tyrylu commented on Jun 7, 2013

    @tyrylu
    Author

    Yeach, they do that internally. Perhaps there is better way of getting the user's appdata path?

  3. AyrA commented on Jun 7, 2013

    @AyrA

    You can use the environment variable %APPDATA% on windows, or check if the platform is windows NT and just "assume" UTF-8.

  4. PeterSurda commented on Apr 28, 2016

    @PeterSurda
    Member

    Is this still a problem?

  5. added
    bugSomething isn't working as it's supposed to
    on Apr 28, 2016
  6. added this to the Undefined milestone on Apr 28, 2016
  7. self-assigned this
    on Apr 28, 2016
  8. added a commit that references this issue on Apr 29, 2020
    86be0e0
  9. added a commit that references this issue on May 11, 2020
    9b2c210
  10. added a commit that references this issue on May 22, 2020
    25049e2
  11. modified the milestones: Undefined, v0.6.4 on Aug 27, 2020
  12. added a commit that references this issue on Sep 1, 2020
    a38cccb
  13. added a commit that references this issue on Sep 18, 2020
    17f0ced
  14. added a commit that references this issue on Oct 5, 2020
    a29d25e
  15. added a commit that references this issue on Nov 10, 2020
    dd4cc9b
  16. added 2 commits that reference this issue on Jan 23, 2021
    06d0b5c
    b4645c9
  17. added 2 commits that reference this issue on Feb 4, 2021
    b2af48e
    36a4f20
  18. added a commit that references this issue on Jun 29, 2021
    a912c10
  19. added a commit that references this issue on Dec 12, 2022
    e06713f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as it's supposed to

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions