Skip to content

Internal "getline" implementation breaks nul tests #45

@danielhams

Description

@danielhams

Discovered by building + running tests on IRIX where by default there is no "getline" implementation - patchutils will notice and use the one from src/util.c.

Issue: Looks like the internal getline impl doesn't correctly preserve the nul chars

How to reproduce (on Linux):

perl -pi -e "s|getline|rpl_getline|g" src/*.c
perl -pi -e "s|getline|rpl_getline|g" src/*.h
export ac_cv_func_getline=no
./configure --prefix=/tmp/bananas
make
make check

That will force it use the replacement getline.

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