Skip to content

SVN update fails with UnicodeDecodeError in dfetch >= 0.14.3 #1383

Description

@ben-edna

Summary

Updating SomeProject with dfetch 0.14.3 fails during SVN export due to a UTF-8 decoding error. The same update succeeds with dfetch 0.11.0.

Steps to Reproduce

dfetch update SomeProject

Environment

  • dfetch: 0.14.3
  • Python: 3.12
  • SVN repository accessed via HTTP

Actual Result

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1557: invalid continuation byte

Stack trace points to:

_run_svn_raw(args, url=url).decode()

indicating a hardcoded UTF-8 decode of SVN command output.

Expected Result

SVN output should be decoded using the system encoding (or with fallback handling), and the update should complete successfully.

Additional Information

  • Regression: dfetch==0.11.0 works correctly.
  • Likely caused by SVN output containing non-UTF-8 characters (e.g. Windows code page encoding such as CP1252).
  • Temporary workaround:
pip install dfetch==0.11.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions