mirror of
https://github.com/grassmunk/Chicago95.git
synced 2025-07-27 07:34:36 +02:00
Fixing ICONMETRICS/NONCLIENTMETRICS
The decode would crash when it encountered a windows bytes, changing the encoding to cp1252 fixes it.
This commit is contained in:
parent
7e5f20374b
commit
a83ffeee94
@ -465,7 +465,7 @@ def get_file_name(config, section, key):
|
||||
|
||||
def null_string(data):
|
||||
data = bytearray(data)
|
||||
return data[:data.find(0)].decode('ascii')
|
||||
return data[:data.find(0)].decode('cp1252')
|
||||
|
||||
|
||||
def parse_IconMetrics(IconMetrics):
|
||||
@ -1213,4 +1213,4 @@ def main():
|
||||
|
||||
print("Thank you for using Chicago95 Plus!\n")
|
||||
|
||||
main()
|
||||
main()
|
||||
|
Loading…
x
Reference in New Issue
Block a user