commit: aa6c69a8745e165153a0adbcbe18fe7ff17c07a0
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Sat Jan 10 00:48:23 2026 +0000
Commit: Kerin Millar <kfm <AT> plushkava <DOT> net>
CommitDate: Sat Jan 10 00:48:23 2026 +0000
URL: https://gitweb.gentoo.org/proj/locale-gen.git/commit/?id=aa6c69a8
Check for a terminal with -t *STDERR
This makes it more apparent as to what the code is doing.
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
locale-gen | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/locale-gen b/locale-gen
index ddb44ce..30b5e46 100644
--- a/locale-gen
+++ b/locale-gen
@@ -743,7 +743,7 @@ sub can_run ($bin) {
}
sub print_warning ($warning) {
- state $is_tty = -t 2;
+ state $is_tty = -t *STDERR;
if ($is_tty) {
local $Term::ANSIColor::EACHLINE = "\n";
print STDERR colored($warning, 'bold yellow');