Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch #46192

Closed
Jimbo mannequin opened this issue Jan 21, 2008 · 4 comments
Closed

msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch #46192

Jimbo mannequin opened this issue Jan 21, 2008 · 4 comments
Assignees
Labels
build The build process and cross-build OS-windows type-bug An unexpected behavior, bug, or error

Comments

@Jimbo
Copy link
Mannequin

Jimbo mannequin commented Jan 21, 2008

BPO 1884
Nosy @loewis
Files
  • bar.py
  • bar.py
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/loewis'
    closed_at = <Date 2010-05-20.12:56:32.719>
    created_at = <Date 2008-01-21.19:14:04.786>
    labels = ['type-bug', 'invalid', 'OS-windows', 'build']
    title = "msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch"
    updated_at = <Date 2010-05-20.12:56:32.711>
    user = 'https://bugs.python.org/Jimbo'

    bugs.python.org fields:

    activity = <Date 2010-05-20.12:56:32.711>
    actor = 'loewis'
    assignee = 'loewis'
    closed = True
    closed_date = <Date 2010-05-20.12:56:32.719>
    closer = 'loewis'
    components = ['Build', 'Windows']
    creation = <Date 2008-01-21.19:14:04.786>
    creator = 'Jimbo'
    dependencies = []
    files = ['14002', '14003']
    hgrepos = []
    issue_num = 1884
    keywords = []
    message_count = 4.0
    messages = ['61440', '88007', '88009', '106147']
    nosy_count = 2.0
    nosy_names = ['loewis', 'Jimbo']
    pr_nums = []
    priority = 'low'
    resolution = 'not a bug'
    stage = 'test needed'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1884'
    versions = ['Python 2.6', 'Python 3.1']

    @Jimbo
    Copy link
    Mannequin Author

    Jimbo mannequin commented Jan 21, 2008

    I believe Codepage (a summary property which must be set *before* any
    other string value), is a string. Documentation admits it might also be
    an integer, but it doesn't matter. Both foo.SetProperty(PID_CODEPAGE,
    '1252') and foo.SetProperty(PID_CODEPAGE, 1252) raise "unknown error 65d".

    I believe 0x65d (1629d) to be ERROR_DATATYPE_MISMATCH.

    @Jimbo Jimbo mannequin added the build The build process and cross-build label Jan 21, 2008
    @tiran tiran added the type-bug An unexpected behavior, bug, or error label Jan 22, 2008
    @Jimbo
    Copy link
    Mannequin Author

    Jimbo mannequin commented May 17, 2009

    I hope this helps. It's Greek to me now.

    @Jimbo
    Copy link
    Mannequin Author

    Jimbo mannequin commented May 17, 2009

    Well, I violated the admonition of the Great Satan: "PID_CODEPAGE must
    be first." (or words to that effect). It turns out not to make a
    difference. Revised (conforming) source attached.

    @loewis
    Copy link
    Mannequin

    loewis mannequin commented May 20, 2010

    I fail to see the bug in this report. As you found out, you need to set the codepage property before setting any of the string properties. This is a requirement imposed by Microsoft, and has nothing to do with Python.

    @loewis loewis mannequin closed this as completed May 20, 2010
    @loewis loewis mannequin added the invalid label May 20, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    build The build process and cross-build OS-windows type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant