Skip to content

Commit 0a0cf1c

Browse files
Fix a failing bats test
1 parent 93f360b commit 0a0cf1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

diff-so-fancy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ sub should_print_unicode {
526526

527527
# Otherwise, assume we're piping to less(1)
528528
my ($less_env_var, $less_charset) = get_less_charset();
529+
$less_charset //= "";
529530
if ($less_charset =~ /utf-?8/i) {
530531
return 1;
531532
}

0 commit comments

Comments
 (0)