Substring of Unicode string including newlines in Windows

It works! Thank you very much for this thorough help!

Tie

The compiler is not written in C at all. The runtime is implemented in C, but the compiler itself is a standard OCaml program. And yes, the compiler does not alter string literals at all.

That is helpful, thank you. Personally, I would be pleased if C compilers worked the same way. In consequence I generally find myself writing string literals only in the ASCII subset, and use something like gettext or equivalent to generate UTF-8 at runtime for languages which require code points outside that subset.