Skip to content

Commit

Permalink
lesstest: update lt files to define LESSCHARSET.
Browse files Browse the repository at this point in the history
On systems with nl_langinfo, the value of nl_langinfo(CODESET)
overrides the value of LANG/LC_TYPE, which can cause tests to
fail because less uses ASCII rather than UTF-8.
  • Loading branch information
gwsw committed Jan 21, 2024
1 parent 19679de commit d329711
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lesstest/lt/colorbars.lt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "135"
E "LINES" "45"
E "LESS" "R"
E "LESSCHARSET" "utf8"
E "LANG" "C"
E "LC_CTYPE" "en_US.UTF-8"
T "colorbars"
Expand Down
1 change: 1 addition & 0 deletions lesstest/lt/github265.lt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "109"
E "LINES" "49"
E "LESS" "R"
E "LESSCHARSET" "utf8"
E "LANG" "C"
E "LC_CTYPE" "en_US.UTF-8"
T "github265"
Expand Down
1 change: 1 addition & 0 deletions lesstest/lt/github329.lt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ E "LESS_TERMCAP_kh" "OH"
E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "79"
E "LINES" "34"
E "LESSCHARSET" "utf8"
E "LANG" "C"
T "github329"
A "github329"
Expand Down
Binary file modified lesstest/lt/hdr-unicode.lt
Binary file not shown.
Binary file modified lesstest/lt/hdr-unicode1.lt
Binary file not shown.
1 change: 1 addition & 0 deletions lesstest/lt/proc-special.lt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ E "LESS_TERMCAP_kh" "OH"
E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "93"
E "LINES" "34"
E "LESSCHARSET" "utf8"
E "LANG" "C"
T "proc-special"
A "proc-special"
Expand Down
1 change: 1 addition & 0 deletions lesstest/lt/seq200.lt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ E "LESS_TERMCAP_kh" "OH"
E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "115"
E "LINES" "39"
E "LESSCHARSET" "utf8"
E "LANG" "C"
E "LC_CTYPE" "en_US.UTF-8"
T "seq200"
Expand Down
1 change: 1 addition & 0 deletions lesstest/lt/subsearch.lt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ E "LESS_TERMCAP_kh" "OH"
E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "95"
E "LINES" "34"
E "LESSCHARSET" "utf8"
E "LANG" "C"
T "subsearch"
A "subsearch"
Expand Down
1 change: 1 addition & 0 deletions lesstest/lt/table-50x200.lt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ E "LESS_TERMCAP_kh" "OH"
E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "116"
E "LINES" "41"
E "LESSCHARSET" "utf8"
E "LANG" "C"
T "table-50x200"
A "table-50x200"
Expand Down
1 change: 1 addition & 0 deletions lesstest/lt/version.c.lt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ E "LESS_TERMCAP_kh" "OH"
E "LESS_TERMCAP_@7" "OF"
E "COLUMNS" "79"
E "LINES" "34"
E "LESSCHARSET" "utf8"
E "LANG" "C"
T "version.c"
A "version.c"
Expand Down

0 comments on commit d329711

Please sign in to comment.