Skip to content

strings that contain null characters #4120

Closed
@ThomasBreuer

Description

The following happens in released versions of GAP and in the current master branch.

gap> s:= "abc\000def";
"abc\000def"
gap> Length( s );
7
gap> Print( s, "\n" );
abc

Is this a bug or a feature?
(In the latter case, it should become documented.)

Activity

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

Metadata

Assignees

No one assigned

    Labels

    kind: quirkIssues that are not bugs, but a discrepancy between user expectation and system behaviortopic: kernel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions