Skip to content

Invalid escape sequence with domain names on Windows #58

Description

@Kaaserne

git_AuthorName gives an invalid escape when working with Windows domain name. Say my Windows domain name is XXX-PCN\Kaaserne then git_AuthorName would give:

const char* git_AuthorName() {
    return "XXX-PCN\Kaaserne";
}

But \K isn't a valid escape sequence, nor should it be interpreted as an escape sequence. So instead, \\K should be used

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions