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: Codepage unset in msilib.init_database()
Type: enhancement Stage: test needed
Components: Windows Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: 1884 Superseder:
Assigned To: loewis Nosy List: Jimbo, loewis
Priority: low Keywords:

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

Files
File name Uploaded Description Edit
foo.py Jimbo, 2009-05-17 21:24 PID_CODEPAGE Not Implemented
Messages (3)
msg60006 - (view) Author: Jim Wilson (Jimbo) Date: 2008-01-16 20:13
At
http://msdn2.microsoft.com/en-us/library/aa367864(VS.85,printer).aspx,
Satanic Verses sayeth:  "The Codepage Summary property must be set
before any string properties are set in the summary information.", but
so far as I can tell, PID_CODEPAGE is never used in msilib.__init__.py,
etal.

Confirming evidence: msilib's GetProperty(msilib.PID_CODEPAGE) raises
"Not Implemented" on Python2.5.1's own .msi file.
msg88003 - (view) Author: Jim Wilson (Jimbo) Date: 2009-05-17 21:24
It's been more than a year.  I'll work a little longer on the
SetProperty(...) example, but here's the "confirming evidence".

A related problem is 1884, but I simply don't remember the context and
long ago deleted the code in disgust.
msg106148 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-05-20 12:56
[The original link seems down; I found a similar description at http://msdn.microsoft.com/en-us/library/aa372049%28VS.85%29.aspx]

I think you are misinterpreting the documentation. It doesn't say that the codepage property is required (in fact, they explicitly list the required properties, namely Template, Revision Number, Page Count, Word Count). What they do say is that *if* you want to set the codepage property, *then* you must set it before any other string property. Since we are not setting the codepage property at all, this requirement is irrelevant.

Closing the report as invalid.
History
Date User Action Args
2022-04-11 14:56:29adminsetgithub: 46163
2010-05-20 12:56:50loewissetstatus: open -> closed
resolution: not a bug
messages: + msg106148
2009-05-17 21:24:25Jimbosetfiles: + foo.py

messages: + msg88003
2009-05-16 17:48:21ajaksu2setpriority: normal -> low
dependencies: + msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch
type: resource usage -> enhancement
stage: test needed
versions: + Python 2.7, Python 3.2, - Python 2.5
2008-01-16 20:18:15christian.heimessetpriority: normal
assignee: loewis
type: resource usage
components: + Windows, - Distutils
nosy: + loewis
2008-01-16 20:13:20Jimbocreate