Skip to content

Add flag "/utf-8" for MSVC compiler in the build script #130741

Open
@ChihHao-Su

Description

@ChihHao-Su

This will solve #60549.

You need to add `-DCMAKE_CXX_CLAGS="/utf-8" to command line argument.

I got similar result with LLVM 18.1.8 and Visual Studio 19 in Japanese environment(CP932).

MSVC opens source file with system code page by default.

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