This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch
Type: behavior Stage: test needed
Components: Build, Windows Versions: Python 3.1, Python 2.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: loewis Nosy List: Jimbo, loewis
Priority: low Keywords:

Created on 2008-01-21 19:14 by Jimbo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bar.py Jimbo, 2009-05-17 21:59
bar.py Jimbo, 2009-05-17 22:11
Messages (4)
msg61440 - (view) Author: Jim Wilson (Jimbo) Date: 2008-01-21 19:14
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.
msg88007 - (view) Author: Jim Wilson (Jimbo) Date: 2009-05-17 21:59
I hope this helps.  It's Greek to me now.
msg88009 - (view) Author: Jim Wilson (Jimbo) Date: 2009-05-17 22:11
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.
msg106147 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-05-20 12:56
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.
History
Date User Action Args
2022-04-11 14:56:30adminsetgithub: 46192
2010-05-20 12:56:32loewissetstatus: open -> closed
resolution: not a bug
messages: + msg106147
2009-05-17 22:11:13Jimbosetfiles: + bar.py

messages: + msg88009
2009-05-17 21:59:01Jimbosetfiles: + bar.py

messages: + msg88007
2009-05-16 17:48:21ajaksu2linkissue1855 dependencies
2009-05-16 17:47:51ajaksu2setstage: test needed
versions: + Python 2.6, Python 3.1, - Python 2.5
2008-01-22 01:00:36christian.heimessetpriority: low
assignee: loewis
type: behavior
components: + Windows
nosy: + loewis
2008-01-21 19:14:04Jimbocreate