You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the environment variable PAGER unset, running csview with a filename, results in less showing the error message:
There is no -<E8> option ("less --help" for help)
Press RETURN to continue
when using standard input, the error is:
There is no -l option ("less --help" for help)
Press RETURN to continue
Running these commands with ltrace shows that when the string LESS=-SF is passed to the function putenv(), the trailing null character is missing and extra garbage characters are added to the environment variable:
putenv("LESS=-SF\350\331\002\354p") or putenv("LESS=-SFless")
Not being a rust programmer, I don't know the best way to correct this, but as a workaround, either one of the quick and dirty patches below fixes the issue for me.
With the environment variable
PAGER
unset, runningcsview
with a filename, results inless
showing the error message:when using standard input, the error is:
Running these commands with
ltrace
shows that when the stringLESS=-SF
is passed to the functionputenv()
, the trailing null character is missing and extra garbage characters are added to the environment variable:putenv("LESS=-SF\350\331\002\354p")
orputenv("LESS=-SFless")
Not being a rust programmer, I don't know the best way to correct this, but as a workaround, either one of the quick and dirty patches below fixes the issue for me.
In
main.rs
replace the linewith either
or else with
testing environment
The text was updated successfully, but these errors were encountered: