Skip to content

Issue with QuoteSnippetStringCStyle when parsing '\u0085' character #1740

@hamarb123

Description

@hamarb123

Another line needs to be added after this, which would be

case '\u0085':

This is because it is recognised as a newline character in C# (see here), which cannot be in literal strings.
If the CSharpCodeGenerator class was used to make code with a string in it that has U+0085 in it, it would generate invalid C# code.
NB: this is also an issue on the .NET Framework (see here)

I would like to implement this change, thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions