New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

There is an inconsistency in the _msi.SummaryInformation class. Its method 
SetProperty() accepts str, but GetProperty() returns bytes (encoded with the 
Windows ANSI encoding).

Since os.fsencode()/os.fsdecode() now use UTF-8 encoding, it is not so easy to 
convert between bytes and str. Also, the encoding with the Windows ANSI 
encoding is lossy, so it may be that there is a loss in GetProperty().

----------
components: Windows
messages: 372777
nosy: paul.moore, serhiy.storchaka, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: msilib: SetProperty() accepts str, but GetProperty() returns bytes
type: behavior

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41190>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to