Skip to content

io_win32 does not handle non-ascii chars in paths. #3951

@ml232528

Description

@ml232528

protoc.exe --cpp_out=. ./helloworld.proto
If the path is in Chinese, this problem will arise.
The GetCurrentDirectoryA function returns the GB18030 encoding
Using MultiByteToWideChar (CP_UTF8, 0, s.c_str (), s.size (), result.get (), len + 1) error ,CP_ACP should be used。

file :src\google\protobuf\stubs\io_win32.cc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions