Skip to content

Registry text handling is inadequate #8

@RomanHargrave

Description

@RomanHargrave

Registry text files contain extra non-printing characters between every character ([.H.K.E.Y._.C.U.R.R.E and so forth, with . being said non-printing character).

I do not think that this is a WINE issue, since I have encountered this when trying to search registry text before. This is more likely just some microsoft idiocy.

This causes all manner of problems with _read_registry_keys in config.py.

  1. It pisses of all codecs except latin-1, so you would need to open the file and explicitly tell python to use latin-1

  2. The above would be the end of this if it were not for the fact that, while appearing consistent and unmolested to any compatible terminal emulator, this text file is actually an angry ball of hatred that breaks your match for SteamExe and SteamPath as they do not account for the absurd and pointless character nonsense.

  3. It causes your exception handler to execute, which is trying to raise StandardException instead of Exception. As python is an interpreted language I am going to assume that this was not noticed originally. As for why, I'm going to write it off as python 3 having terrible consistency the version you tested this with having decoded the text without complaining, or you use a version of WINE with an 'incompatible` regedit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions