shithub: cstory

Download patch

ref: 169a755ec3cd9c833de3731edc0a03a8e2f18b77
parent: 76e4fb5e8a2faa1aa6211950286c84ddc02053ea
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Mar 14 10:12:53 EDT 2020

Wrap UTF-8 strings in C89-style comments

This should prevent compilation errors when compilers don't read the
source files as UTF-8.

MSVC in certain codepages previously misread some UTF-8 comments as
containing newlines, causing it to try to process the rest of the
comment as code. This was fixed by forcing MSVC to read the files as
UTF-8 using the `/utf-8` flag, but this doesn't seem to be supported
in older versions.

Since the issue was caused by newlines being added where they didn't
belong, using C89-style comments instead should avoid the problem
altogether.

I'll still keep the utf-8 flag around for supported compilers - just
in case.