Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect behavior if file contains ESC,NUL #550

Closed
gwsw opened this issue Jul 29, 2024 · 1 comment
Closed

Incorrect behavior if file contains ESC,NUL #550

gwsw opened this issue Jul 29, 2024 · 1 comment

Comments

@gwsw
Copy link
Owner

gwsw commented Jul 29, 2024

Steps to reproduce:

  1. Run printf 'a\e\0b' | less -R

Expected result:
Less should display

ab
(END)

Actual result:
Less displays

a(END)

Problem exists in less-590 and less-661. Have not tested other versions.

gwsw added a commit that referenced this issue Jul 31, 2024
Currently they return TRUE, which can cause problems when
there is a NUL char in the input file.

Related to #550.
@gwsw
Copy link
Owner Author

gwsw commented Jul 31, 2024

Fixed in 325d4db.

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

No branches or pull requests

1 participant