Skip to content

BUG: 中文路径闪退,请求支持中文路径 #15

@jiajun2121

Description

@jiajun2121

输入的uvprojx文件路径有中文时,程序会闪退没有任何输出

经过测试发现出错的地方在encoding_inl.hpp文件

std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>>().from_bytes(str, str + str_size);

在这个函数里面抛出异常(xlocbuf文件里)

_Throw_range_error("bad conversion");

看起来是转换编码的过程发生失败了,但是我不太懂c++不知道怎么改实在无能为力,本来想加个try catch至少打印个报错信息,也没有效果,程序还是悄无声息地退出

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions