Skip to content

Logchannel crash on non-utf8 home directory path. #7

@joepal1976

Description

@joepal1976

Current use case: "Tài liệu". From user:

Could not load 8_asset_downloader
Traceback (most recent call last):
  File "./core\mhmain.py", line 580, in loadPlugin
    module.load(self)
  File "C:\Program Files\makehuman-community\makehuman\plugins\8_asset_downloader\__init__.py", line 38, in load
    downloadView = category.addTask(AssetDownloadTaskView(category))
  File "C:\Program Files\makehuman-community\makehuman\plugins\8_asset_downloader\assetdownload.py", line 69, in __init__
    self.log = mhapi.utility.getLogChannel("assetdownload")
  File "C:\Program Files\makehuman-community\makehuman\plugins\1_mhapi\_utility.py", line 119, in getLogChannel
    self.logChannels[name] = LogChannel(name,defaultLevel,mirrorToMHLog)
  File "C:\Program Files\makehuman-community\makehuman\plugins\1_mhapi\logchannel.py", line 42, in __init__
    f.write("--- " + self.fileName + " ---\n\n")
  File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\u0300' in position 30: character maps to <undefined>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions