Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
send-email: ask confirmation if given encoding name is very short
[gitweb.git]
/
git-send-email.perl
diff --git
a/git-send-email.perl
b/git-send-email.perl
index fdb0029b597898559376b1b28d692450794251f3..eb3237115125ebb749a6b2e8b2cf612106a05516 100755
(executable)
--- a/
git-send-email.perl
+++ b/
git-send-email.perl
@@
-733,6
+733,7
@@
sub file_declares_8bit_cte {
print " $f\n";
}
$auto_8bit_encoding = ask("Which 8bit encoding should I declare [UTF-8]? ",
+ valid_re => qr/.{4}/, confirm_only => 1,
default => "UTF-8");
}