Skip to content

String.StartsWith/EndsWith/IndexOf/LastIndexOf ignoring null characters on Unix #4673

Closed
@stephentoub

Description

@stephentoub

For example, this:

Console.WriteLine("abcte\0\0\0\0\0st".EndsWith("test"));

prints out true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Globalizationdisabled-testThe test is disabled in source code against the issueos-linuxLinux OS (any supported distro)test-bugProblem in test source code (most likely)untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions